Re: array walk and class member functions
| From: | Jochem Maas | Date: | Wed, 12 Jan 2005 13:29:17 +0000 |
| Subject: | Re: array walk and class member functions | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206181@lists.php.net to get a copy of this message | ||
Tom wrote:
Thanks very much for the help - both methods work fine. I'd had a look at the array_walk manual, but didn't realise that the second param would accept an array - that's really coolindeed that page does not make it very clear, it's the generic call_back syntax, which can be used practically everywhere a callback function is expected, the array you pass can be in the form of: array($object, 'methodname') or array('classname', 'methodname') the second version allows you to use static class methods.