Created
October 7, 2014 20:40
-
-
Save kristianb21/fbbbe6df62f3dcc8123f to your computer and use it in GitHub Desktop.
wp 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
<?php | |
switch ($i): | |
case 0: | |
echo "i equals 0"; | |
break; | |
default: | |
//code here | |
endswitch; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment