The following code doesn\'t print out anything:
$bool_val = (bool)false; echo $bool_val;
But the following code prints 1:
1
This gives 0 or 1:
0
intval($bool_val);
PHP Manual: intval function