Posted by mydahlia on 06/07/06 12:58
abstract class A { static function i_want_my_childs_name() { echo __CLASS__; } } class B extends A { } B::i_want_my_childs_name(); this code prints "A", but i want to get "B". how can i get subclass's name in static method?
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming