Created
May 7, 2013 11:55
-
-
Save mcuadros/5532049 to your computer and use it in GitHub Desktop.
#PHP odd: you can use any special char after a case like in PHP instead of ":", like a * a pipe, etc. Try it! "
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 | |
//This is a valid PHP | |
switch (true) { | |
case 'semicolon'; //<-- Documented | |
false; | |
case 'asterisk'* | |
false; | |
case 'pipe'| | |
false; | |
case 'slash'/ | |
false; | |
case 'plus'+ | |
false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment