Re: [PHP4BETA] Call overriden parent function

From: Date: Sat, 24 Jul 1999 17:02:08 +0000
Subject: Re: [PHP4BETA] Call overriden parent function
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-2685@lists.php.net to get a copy of this message
At 18:38 24/07/99 , Johan Isacsson wrote:
Hello! I have a question: How do i call a parent function from a child that have a function with the same name as the the parent (overriding)? Is there a $parent variable or somehing that i can use instead of $this?
There's no parent variable, but you can explicitly call the parent class by using parent_classname::function_name(); Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.il

« previous php.version4 (#2685) next »