class A
{
static $v = "A";
static function echoExtendedStaticVariable() {
echo self::$v;
}
}
class B extends A
{
static $v = "B";
// override A's variable with "B"
}
Why does:
echo B::$v
print "A"?
And how do I get it to print "B"?
Is there a way to do this before PHP 5.3?