These data types provide output as 0 or 1. In PHP, value of True is one and the value of False is nothing.
<?php $foo = True; // assign the value TRUE to $foo ?>
<?php $a=true; echo $a; ?>
Output: