abstract class A {
static function i_want_my_child s_name() {
echo __CLASS__;
}
}
class B extends A { }
B::i_want_my_ch ilds_name();
this code prints "A", but i want to get "B". how can i get subclass's
name in static method?
static function i_want_my_child s_name() {
echo __CLASS__;
}
}
class B extends A { }
B::i_want_my_ch ilds_name();
this code prints "A", but i want to get "B". how can i get subclass's
name in static method?