Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Use the boolean compare operators

Mon Oct 27, 2008 1:13 pm

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




Post a reply
  Related Posts  to : Use the boolean compare operators
 C++ Boolean Operations     -  
 Boolean type constant     -  
 difference between the Boolean & operator and the &&     -  
 Define boolean Class properties     -  
 Compare directories     -  
 compare two strings     -  
 compare two sets     -  
 Compare two strings in php     -  
 compare strings     -  
 How to compare two arrays in java     -  

Topic Tags

PHP Basics