Search This Blog

if statement or single if statement in php

<?php

$num=21;

if($num==21)
   {
      echo 'number is 21<br>';
    }


if($num==20)
   {
       echo 'numbet is 20<br>';
    }
?>


output : number is 21

Share Links

Related Posts Plugin for WordPress, Blogger...