if a > than b php code example
Example 1: php else
<?php
if ($a > $b) {
echo "a is greater than b";
} else {
echo "a is NOT greater than b";
}
?>
Example 2: php if
<?php
if ($a > $b)
echo "a is bigger than b";
?>
<?php
if ($a > $b) {
echo "a is greater than b";
} else {
echo "a is NOT greater than b";
}
?>
<?php
if ($a > $b)
echo "a is bigger than b";
?>