- var_export: documentation ( source)
<?php
$bool = false;
echo 'is ', var_export($bool, true), ' empty? ', var_export(empty($bool)), "\n";
$str = (string)$bool;
echo 'is ', var_export($str, true), ' empty? ', var_export(empty($str)), "\n";
$int = (int)$str;
echo 'is ', var_export($int, true), ' empty? ', var_export(empty($int)), "\n";