Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > question, need help
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 10th June 08:06
purple.calm@gmail.com (purple
External User
 
Posts: 1
Default question, need help



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.
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666