The following code doesn\'t print out anything:
$bool_val = (bool)false; echo $bool_val;
But the following code prints 1:
1
Try converting your boolean to an integer?
echo (int)$bool_val;