Re: Calling parent function with call_user_func_array
| From: | Tommy Baggett | Date: | Fri, 30 Nov 2007 00:22:17 +0000 |
| Subject: | Re: Calling parent function with call_user_func_array | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265268@lists.php.net to get a copy of this message | ||
On Nov 29, 2007, at 5:30 PM, Jochem Maas wrote:
It doesn't work with PHP 4. I was going to try PHP5 on my development machine but I will need to do some configuration editing first. Here's the exact code I tried: class Walker_NavBar extends Walker { ... function walk($elements, $to_depth) { $args = func_get_args(); ... // call base class implementation return call_user_func_array(array(parent,'walk'),$args); } ...does this work:? call_user_func_array(array(parent,'doSomething'),$args);