Created
July 21, 2015 14:41
-
-
Save yoimbert/d429ea1f1471e7d4f7bc to your computer and use it in GitHub Desktop.
elseif/else if
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($a > $b) { | |
echo "a est plus grand que b"; | |
} elseif ($a == $b) { | |
echo "a est égal à b"; | |
} else { | |
echo "a est plus petit que b"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment