Created
May 14, 2016 10:18
-
-
Save MightyPork/7fcf997c6e50a6fad048eceb3eea71b8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| class Lolwut { | |
| const string = "I'm string"; | |
| const const = "I'm const"; | |
| const public = "I'm public"; | |
| const use = "I'm use"; | |
| const if = "I'm if"; | |
| //const class = "Class"; // this fails: | |
| } | |
| echo Lolwut::string . PHP_EOL; | |
| echo Lolwut::const . PHP_EOL; | |
| echo Lolwut::public . PHP_EOL; | |
| echo Lolwut::use . PHP_EOL; | |
| echo Lolwut::if . PHP_EOL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment