Created
February 9, 2015 09:13
-
-
Save rightgo09/b7728fd76704ce73408e 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 Hoge { | |
| public function __toString() { | |
| return get_class($this); | |
| } | |
| public static function hhh() { | |
| echo "hoge!!!\n"; | |
| } | |
| } | |
| $hoge = new Hoge(); | |
| $hoge::hhh(); // hoge!!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment