if statement php equals code example
Example 1: php if less than number
<?php
if ($a > $b)
echo "a is bigger than b";
?>
Example 2: operators in php
if (condition)
code to be executed if condition is true;
else
code to be executed if condition is false;