- var_dump: documentation ( source)
- var_export: documentation ( source)
<?php
$vars = array(
true, false, null, 'string', array(), array(1),array(1, 2, 3), new stdClass()
);
foreach ($vars as $var) {
echo "------------\r";
var_export($var);
echo "\r";
echo "!empty() = ";
var_dump(!empty($var));
echo "count() = ";
var_dump(count($var));
}