is_null
(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)
is_null —
檢測變數是否為 null
描述
如果 var 是 null 則返回 true,否則返回 false。
檢視 null 型別獲知變數什麼時候被認為是 null,而什麼時候不是。
參見
null、is_bool()、is_numeric()、is_float()、is_int()、is_string()、is_object()、is_array()、is_integer()
和 is_real()。