Created
November 28, 2012 18:09
-
-
Save b3sam/4162965 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 Super { | |
public static $foo; | |
} | |
class One extends Super { | |
public static $foo = 'One'; | |
} | |
class Two extends Super { | |
public static $foo = 'Two'; | |
} | |
$one = new One(); | |
var_dump($one::$foo); | |
$two = new Two(); | |
var_dump($one::$foo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment