- var_dump: documentation ( source)
<?php
class Foo { public $bar; }
$foo = new Foo;
$blanks = array("", " ", FALSE, TRUE, array(), NULL, "0", 0, 0.0, new stdClass, $foo->bar, "\0");
foreach($blanks as $blank){
var_dump($blank);
$type = gettype($blank);
if(count($blank) == 0){ $val = "empty"; }
echo "$type($val)\n";
}