In one of PHP questions on assessmentee.com, following code:
$a = "";
echo gettype($a);
echo empty($a);
echo is_null($a);
echo isset($x);
returns only "string1"
Why don't we have three bolean values returned, one for each of three functions: empty(), is_null() and isset()?
echoprints to string.false,true,nullare not represented as strings, I can't find right now something to share with you explaining it, but you could also usevar_dump.