Is there any builtin function for PHP that will take a boolean value and return its integer equivalent? 0 for FALSE, 1 for TRUE? Of course you can easily create a function to do
Just add a "+" before your variable like this :
$myBool = true; var_dump(+$myBool); ouputs: int(1);