Created
July 14, 2016 13:03
-
-
Save tbarbugli/942edf9ed476e3aada9afc7d5e455b5c to your computer and use it in GitHub Desktop.
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 | |
class A { | |
public static function who() { | |
echo __CLASS__; | |
} | |
public static function test() { | |
self::who(); | |
} | |
} | |
class B extends A { | |
public static function who() { | |
echo __CLASS__; | |
} | |
} | |
B::test(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment