(PHP 4 >= 4.0.4, PHP 5, PHP 7)
is_null —
변수가 NULL
인지 확인합니다
var
평가할 변수.
var
가 null이면 TRUE
를, 아니라면
FALSE
를 반환합니다.
Example #1 is_null() 예제
<?php
error_reporting(E_ALL);
$foo = NULL;
var_dump(is_null($inexistent), is_null($foo));
?>
Notice: Undefined variable: inexistent in ... bool(true) bool(true)
NULL
형