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
http://www.php.net/manual/en/language.types.integer.php
Normally, simply $myInt = (int)$myBoolean should work, can you show us your code otherwise ?
$myInt = (int)$myBoolean