- 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";
$bool = (bool)$string;
echo 'is ', var_export($bool, true), 'empty? ', var_export(empty($bool)), "\n";