Search This Blog

if-else statement in php

<?php

$num=21;

if($num==20)
  {
     echo 'number is 20';
   }

else
   {
     echo 'number is not 20';
   }

?>

output : number is not 20

Share Links

Related Posts Plugin for WordPress, Blogger...