Tutorial PHP

PHP INICIO Introducción PHP Instalación de PHP Sintaxis PHP Comentarios PHP Variables PHP PHP Echo / Imprimir Tipos de datos PHP Cadenas PHP Números PHP Matemáticas PHP Constantes PHP Operadores PHP PHP Si... Más... Elseif Cambio de PHP Bucles de PHP Funciones PHP Matrices de PHP Superglobales de PHP PHP expresión regular

Formularios PHP

Manejo de formularios PHP Validación de formulario PHP Formulario PHP requerido Formulario PHP URL/Correo electrónico Formulario PHP completo

PHP Avanzado

Fecha y hora PHP PHP Incluir Manejo de archivos PHP Archivo PHP Abrir/Leer Archivo PHP Crear/Escribir Carga de archivos PHP Cookies PHP Sesiones PHP Filtros PHP Filtros PHP avanzados Funciones de devolución de llamada de PHP PHPJSON Excepciones de PHP

POO de PHP

PHP ¿Qué es la programación orientada a objetos? Clases PHP/Objetos Constructor PHP Destructor PHP Modificadores de acceso de PHP Herencia de PHP Constantes PHP Clases abstractas de PHP Interfaces PHP Características de PHP Métodos estáticos de PHP Propiedades estáticas de PHP Espacios de nombres de PHP Iterables de PHP

Base de datos MySQL

Base de datos MySQL Conexión MySQL MySQL Crear base de datos Crear tabla MySQL MySQL Insertar datos MySQL Obtener la última identificación MySQL Insertar Múltiples MySQL preparado Datos seleccionados de MySQL mysql donde MySQL Ordenar por MySQL Eliminar Datos Datos de actualización de MySQL Límite de datos de MySQL

PHPXML _

Analizadores PHP XML Analizador PHP SimpleXML PHP SimpleXML - Obtener PHP XML Expatriados PHP XML DOM

PHP -AJAX

Introducción a AJAX AJAXPHP Base de datos AJAX XML AJAX Búsqueda en vivo de AJAX Encuesta AJAX

Ejemplos de PHP

Ejemplos de PHP Compilador PHP Cuestionario de PHP Ejercicios PHP Certificado PHP

Referencia PHP

Descripción general de PHP Matriz de PHP Calendario PHP Fecha PHP Directorio PHP Error PHP Excepción PHP Sistema de archivos PHP Filtro PHP PHPFTP PHPJSON Palabras clave PHP PHP Libxml Correo PHP Matemáticas PHP PHP misceláneo PHP MySQLi Red PHP Control de salida de PHP PHP expresión regular PHP SimpleXML flujo PHP Cadena PHP Manejo de variables de PHP Analizador PHP XML código postal de PHP Zonas horarias de PHP

Palabras clave PHP


Palabras clave PHP

PHP tiene un conjunto de palabras clave que son palabras reservadas que no se pueden usar como nombres de funciones, nombres de clases o nombres de métodos. Antes de PHP 7, estas palabras clave tampoco se podían usar como nombres de propiedad de clase:

Keyword Description
abstract Declare a class as abstract
and A logical operator
as Used in the foreach loop
break Break out of loops and switch statements
callable A data type which can be executed as a function
case Used in the switch conditional
catch Used in the try..catch statement
class Declare a class
clone Create a copy of an object
const Define a class constant
continue Jump to the next iteration of a loop
declare Set directives for a block of code
default Used in the switch statement
do Create a do...while loop
echo Output text
else Used in conditional statements
elseif Used in conditional statements
empty Check if an expression is empty
enddeclare End a declare block
endfor End a for block
endforeach End a foreach block
endif End an if or elseif block
endswitch End a switch block
endwhile End a while block
extends Extends a class or interface
final Declare a class, property or method as final
finally Used in the try...catch statement
fn Declare an arrow function
for Create a for loop
foreach Create a foreach loop
function Create a function
global Import variables from the global scope
goto Jump to a line of code
if Create a conditional statement
implements Implement an interface
include Embed code from another file
include_once Embed code from another file
instanceof Test an object's class
insteadof Resolve conflicts with traits
interface Declare an interface
isset Check if a variable exists and is not null
list Assigns array elements into variables
namespace Declares a namespace
new Creates an object
or A logical operator
print Output text
private Declare a property, method or constant as private
protected Declare a property, method or constant as protected
public Declare a property, method or constant as public
require Embed code from another file
require_once Embed code from another file
return Exit a function and return a value
static Declare a property or method as static
switch Create a switch block
throw Throw an exception
trait Declare a trait
try Create a try...catch structure
unset Delete a variable or array element
use Use a namespace
var Declare a variable
while Create a while loop or end a do...while loop
xor A logical operator
yield Used in generator functions
yield from Used in generator functions