""Dean Hall"" <[EMAIL PROTECTED]> wrote in message 9ao8dc$s6t$[EMAIL PROTECTED]">news:9ao8dc$s6t$[EMAIL PROTECTED]... > Stupid me. Just extend the class. > > Now the real question: > > Is there any dynamic binding in PHP? You can do simlar thing with Variable Function. For example. class foo { var $function_name; function foo($fname) {$this->function_name = $fname; $this->$function_name;} function a() {echo 'a';} function b() {echo 'b';} } foo('b'); // calls foo::b() >Can I override a method in a subclass? Yes. -- Yasuo Ohgaki > > Dean. > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to