Funzioni per il controllo delle variabili in PHP

isset()

$a è impostata

empty()

$b è vuota

is_null()

$c è NULL

is_array()

$d è un array

is_bool()

$e è un booleano

is_int()

$f è un intero

is_float()

$g è un float

is_string()

$h è una stringa

is_object()

$i è un oggetto

is_resource()

$file è una risorsa

gettype()

Il tipo di $f è: integer

settype()

Il nuovo tipo di $h è: integer e il suo valore è: 0

unset()

$a è stata distrutta con unset()

var_dump()

Risultato di var_dump($d): array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) }

print_r()

Risultato di print_r($d): Array ( [0] => 1 [1] => 2 [2] => 3 )

is_numeric()

$g è un valore numerico

Lettura di un file

File di
prova.