Last active
December 18, 2015 08:29
-
-
Save marceloxp/5754018 to your computer and use it in GitHub Desktop.
switch case
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
switch ($i) | |
{ | |
case 0: | |
echo "i equals 0"; | |
break; | |
case 1: | |
echo "i equals 1"; | |
break; | |
case 2: | |
echo "i equals 2"; | |
break; | |
default: | |
echo "i is not equal to 0, 1 or 2"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment