Mega Code Archive

 
Categories / Php / Operator
 

Relational Operators in action

<html> <head>    <title>Relational Operators</title> </head> <body>      <?php         print("(5 < 5) is "  . ((5 < 5) ? "True" : "False") . "<br />");         print("(5 <= 5) is "  . ((5 <= 5) ? "True" : "False") . "<br />");         print("(5 > 5) is "  . ((5 > 5) ? "True" : "False") . "<br />");         print("(5 >= 5) is "  . ((5 >= 5) ? "True" : "False") . "<br />");      ?> </body> </html>