(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)
is_null — Prüft, ob eine Variable null enthält
null
$value
Prüft, ob die gegebene Variable null enthält
value
Die zu prüfende Variable.
Liefert true wenn value null enthält, sonst false.
true
false
Beispiel #1 is_null()-Beispiel
<?phperror_reporting(E_ALL);$foo = NULL;var_dump(is_null($inexistent), is_null($foo));?>
Notice: Undefined variable: inexistent in ... bool(true) bool(true)