Source Code:
(back to article)
<?php $number = 5; if ($number > 0) { echo "$number is a positive number"; } elseif ($number == 0) { echo "$number is zero"; } else { echo "$number is a negative number"; } ?>
Result:
Report an issue