(PHP 4 >= 4.0.4, PHP 5)
is_null — Comprueba si una variable es NULL
La variable a ser evaluada
Devuelve TRUE si var es null, FALSE de lo contrario.
Example #1 Ejemplo is_null()
<?php
error_reporting(E_ALL);
$foo = NULL;
var_dump(is_null($inexistent), is_null($foo));
?>
Aviso: Variable indefinida: inexistente en ... bool(true) bool(true)