

Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!


$ nome_variabile ;
$ nome_array = array (); $ nome_array = array ( val1 , val2 ); $ nome_array = array ( val1 , val2 , …);
$ nome array_ = array ( index1 => val1 , index2 => val2 , …); $ nome_array [“ index3 ”] = val3 ; echo $nome_array [“ index1 ”];
rand ( min , max );
echo val1. val2. nome_variabile ;
for ( contatore ; condizione ; incremento/decremento ){ istruzioni } while ( condizione ){ istruzioni } do { istruzioni } while ( condizione ); foreach ( array_da_usare as contenitore ){ istruzioni }
foreach ( array_da_usare as contenitore_indici => contenitore_valore_indici ){
istruzioni }
function fuzione( val1 ){ istruzioni return val1 ; } $risultato = funzione( val1 ); function fuzione( val1 ){ istruzioni } funzione( val1 );
< form method = "post" action = ”nome_file.php” > < input type =” text ” name =” nome_casella ” value =” default_value ”> < input type =” radio ” name =” nome_radioButton ” value =” select_value ”> < input type =” radio ” name =” nome_radioButton ” value =” select_value ”> < input type =” checkbox ” name =” nome_checkBox[] ” value =” checked_value ”> < input type =” checkbox ” name =” nome_checkBox[] ” value =” checked_value ”> < select name =” nome_selettore[] ” multiple size =” num_visibili ”> < option value =” val1 ”>val1< /optione > < option value =” val2 ”>val2< /optione > < /select > < input type =” submit ” value =” default_value ”> < /form >
$variabile_destinazione = _$POST [“nome_casella”]; $variabile_destinazione = $_POST [“ nome_radioButton ”]; $array_destinazione [] = $_POST [“ nome_checkBox ”]; $ boolean_defenita = isset ($ variable_da_controllare );