note 47326 deleted from function.array-walk by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 06:52:42 +0000 |
| Subject: | note 47326 deleted from function.array-walk by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-196687@lists.php.net to get a copy of this message | ||
Note Submitter: memandeemail at gmail dot com
----
If you are using array_walk on a class, dont will work
so ... try this on your own class:
class your_own_class {
/**
* @return void
* @param array $input
* @param string $funcname
* @desc A little workaround, do the same thing.
*/
function array_walk($input, $funcname) {
foreach ($input as $key => $value) $this->$funcname($value, $key);
}
}