The following code doesn\'t print out anything:
$bool_val = (bool)false; echo $bool_val;
But the following code prints 1:
1
This is the easiest way to do this:
$text = var_export($bool_value,true); echo $text;
or
var_export($bool_value)
If the second argument is not true, it will output the result directly.