The following code doesn\'t print out anything:
$bool_val = (bool)false; echo $bool_val;
But the following code prints 1:
1
You can use a ternary operator
echo false ? 'true' : 'false';