In if statement use OR to connect two conditions : If : Language Basics PHP Source Code


PHP Source Code » Language Basics » If »

 

In if statement use OR to connect two conditions




<?
$degrees = "95";
$hot = "yes";

if (($degrees > 100|| ($hot == "yes")) {
    echo "<P>TESTIt's <strong>really</strong> hot!</P>";
else {
    echo "<P>TESTIt's bearable.</P>";
}
?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» If