Use the boolean compare operators : Logic Operators : Language Basics PHP Source Code


PHP Source Code » Language Basics » Logic Operators »

 

Use the boolean compare operators




<?
$three = 3;
$four = 4;
$my_pi = 3.14159;       
if (($three == $threeand
    ($four === $fourand
    ($three != $fourand
    ($three < $fourand
    ($three <= $fourand
    ($four >= $threeand
    ($three <= $threeand
    ($my_pi > $threeand
    ($my_pi <= $four))
 print("Yes!<BR>");
else
 print("No?<BR>");
?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Logic Operators