question, need help
| From: | purple calm | Date: | Tue, 08 May 2007 09:28:11 +0000 |
| Subject: | question, need help | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-35327@lists.php.net to get a copy of this message | ||
class P{ //parent class
public static function get_class_name(){
return get_class(new self);
}
}
echo C::get_class_name(); //P
class C extends P{ //child
}
echo C::get_class_name(); //here call the static function, but the result is
P, C is the very result I want.
Can you give me some help or advice?
--
Anyone can't foretell tomorrow.