Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
<?php
>
echo
print
$
=
Que realiza
Principio y fin de la pgina php
Ejemplos
<?php
Echo hola;
>
echo hola;
Print(Numero:.$x);
$nombre = Rodolfo;
$edad = 22;
$x=3;
$nombre = Rodolfo;
$edad = 22;
$persona =
$nombre.$edad;
//Configuracin del
intrprete de PHP
/* Configuracin del
intrprete de PHP */
$x + $y;
$x - $y;
$x * $y;
$x++;
//
/**/
+
*
/
++
-==
!=
<
<=
>
>=
$x * $y;
$x--;
$x == $y;
$x != $y;
$x < $y;
$x <= $y;
$x > $y;
$x >= $y;
if (si)
while
Do while
For
foreach
switch
Require();
Include();
Return();
do (condicin) while
{Sentencias;}
for ($i=valor_inicial;
$i=valor_final; $i++)
{Sentencias;}
Break
<? if (condicin)
{Sentencias;}
?>
<? if (condicin)
{Sentencias;}
else(condicin)
{Sentencias;}
?>
O bien;
<? if (condicin)
{Sentencias;}
elseif(condicin)
{Sentencias;}
?>
while (condicin)
{Sentencias;}
switch( expresion ){
case valor1:
// Instrucciones
break;
case valor2:
// Instrucciones
break;
default:
// Instrucciones
}
Include_once
Fopen
Fclose
printf
sprintf
$_GET
$_POST
$_COOKIE
$_FILE
$_SESSIONS
$_GLOBALS
array
SESSION_START()
<B></B>
<BIG></BIG>
<BLINK>...</BLINK>
<FONT color="#XXXXXX">
...</FONT>
<FONT size=X>...</FONT>
printf(%d, $variable);
sprintf(%d,
$variable);
<SMALL>...</SMALL>
<U>...</U>
<BR>
<CENTER>...</CENTER>
<IMG scr="logo.jpg>
<TABLE cellpadding=x>
<TABLE cellspacing=x>
<TR>...</TR>
<TD>...</TD>
<TD align=left>
<TD align=right>
<TD colspan=x>
<TD rowspan=x>
<TD bgcolor="#XXXXXX">
<TD align=center>
<FRAMESET>...</FRAMESET>
<HTML>...</HTML>
<HEAD>...</HEAD>
<TITLE>...</TITLE>
<BODY>...</BODY>
<BODY bgcolor="#XXXXXX">
<BODY background="xyz.gif">
<select name=texto>
<option value=0 default>
</option>
<option value=1> Opcion 1
</option>
<option value=2> Opcion 2
</option>
</select>