Use and to connect two statement in if statement : If : Language Basics PHP Source Code


PHP Source Code » Language Basics » If »

 

Use and to connect two statement in if statement



<?
$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