- var_dump: documentation ( source)
<?php
$values = array(
'int' => 42,
'bool' => true,
'float' => 1/3,
'string' => "foobar",
'null' => null,
);
foreach ($values as $type => $value) {
echo $type, " => ";
var_dump(isset($value[2]));
}