Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class A {
- public static function who() {
- echo __CLASS__;
- }
- public static function test() {
- static::who(); // Here comes Late Static Bindings
- }
- }
- class B extends A {
- public static function who() {
- echo __CLASS__;
- }
- }
- B::test();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement