Boolean
ᴰᵒᵖᵖᵉˡᵍᵃⁿᵍᵉʳ 多佩尔甘格尔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 to $foo ?>
Example 1
<?php
$a=true;
echo $a;
?>
Output:
