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