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