PHP if, else, and else if Control Stucture
The basic control structre is if.statement.Php if allow you to take two condition.
SYNTAX
If (Expression)
statement
<?php
$num = 15;
if($num < 10) {
echo “The number is greater <br />”;
} else {
echo “The number is not greater. <br />”;
}
?>