static inheritance in a class object

From: Date: Fri, 08 Oct 2004 18:33:14 +0000
Subject: static inheritance in a class object
Groups: php.windows 
Request: Send a blank email to php-windows+get-24722@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.windows (#24722) next »