last updated December 2021
$var | isset($var) | empty($var) | is_null($var) | |
---|---|---|---|---|
”” (empty string) | ||||
” ” (space) | ||||
FALSE | ||||
TRUE | ||||
array() (empty array) | ||||
null | ||||
“0” (string) | ||||
0 (int) | ||||
0.0 (float) |
Compatibility: PHP ≥ 4 (is_null, PHP ≥ 4.04)
hope its useful! ✌ Sami