static inheritance in a class object

From: Date: Fri, 08 Oct 2004 19:07:59 +0000
Subject: static inheritance in a class object
Groups: php.general 
Request: Send a blank email to php-general+get-199019@lists.php.net to get a copy of this message
Anyone know why class static vars are inherited? (See code below) class A { public static $CONFIG = null; } A::$CONFIG = "A"; class B extends A { public static $CONFIG = null; } B::$CONFIG = "B"; print ("A: " . A::$CONFIG . "<br>"); print ("B: " . B::$CONFIG . "<br>");

« previous php.general (#199019) next »