7.Simple Example In Php To Show The Use Of If else If control structure.

<?php

$a=100;

$b=20;

$c=400;

if(($a>$b)&&($a>$c))

echo “<h1><center>A is greater</center></h1>”;

else if($b>$c)

echo “<h1><center>B is greater</center></h1>”;

else

echo “<h1><center>C is greater</center></h1>”;

?>

Leave a Comment