Created
July 2, 2012 14:37
-
-
Save fivestar/3033553 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 Foo | |
{ | |
static function hey() | |
{ | |
self::say(); | |
} | |
static function say() | |
{ | |
echo 'foo'; | |
} | |
} | |
class Bar extends Foo | |
{ | |
static function say() | |
{ | |
echo 'bar'; | |
} | |
} | |
Bar::hey(); // foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment