PHP provides a couple of constants especially for use as Booleans: TRUE and FALSE : boolean « Data Type « PHP






PHP provides a couple of constants especially for use as Booleans: TRUE and FALSE


<?
if (TRUE)
 print("This will always print<BR>");
else
 print("This will never print<BR>");
?>
           
       








Related examples in the same category

1.Converting from a boolean to a string will produce a 1 if the boolean is set to true, or an empty string if false.
2.Boolean values
3.Boolean type constant: FALSE