Re: [PHP4BETA] problems with array_walk
| From: | Faisal Nasim | Date: | Thu, 13 Apr 2000 15:55:35 +0000 |
| Subject: | Re: [PHP4BETA] problems with array_walk | ||
| References: | 1 2 3 4 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-13506@lists.php.net to get a copy of this message | ||
: On Thu, 13 Apr 2000, Sergio Garcia Murillo wrote:
: > > Declare your functions like this:
: > >
: > > function change(&$o)
: > Thanxs, and the other problem?? why does the array_walk need
: > to first reset the array to work?? shouldn't do it by himself??
: > And by the way could you tell me where can i find the doc about
: > the reference in functions (i have been looking in my docs and i
: > don't find it)
:
: I actually had array_walk() reset the array before processing it, but
: then a group of people objected to it. I still think it should reset the
: array.
Maybe you should allow a boolean flag or perhaps a new function
say 'array_walk_r'?
Enjoy!
Faisal