Free download web templates, books and more. Free php projects ,games and apps. GTA mods and more

Breaking

php boolean Data type

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

  1. <?php  
  2. $foo = True; // assign the value TRUE
  3. ?>   

Example 1

  1. <?php  
  2.     $a=true;  
  3.     echo $a;  
  4. ?>  
Output:
PHP Boolean