PHP - Type Handling
What will be the output of the following PHP code?
$a = 0;
var_dump(isset($a));
var_dump(empty($a));
var_dump(is_null($a));
$a = 0;
var_dump(isset($a));
var_dump(empty($a));
var_dump(is_null($a));
isset($a) when $a = 0isset($a) returns true.empty($a) when $a = 0empty($a) returns true.is_null($a) when $a = 0is_null($a) returns false.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions