[nycphp-talk] Second time array_walk failed for me
Analysis & Solutions
danielc at analysisandsolutions.com
Thu Nov 6 22:55:38 EST 2003
On Thu, Nov 06, 2003 at 10:18:20PM -0500, Daniel Kushner wrote:
> Phil wrote:
>
> > 1) Why does the PHP manual say that "array_walk" CAN change the values
> > in the array, when, in fact, it can't?
> > 2) If 1 is answerable, does that mean the manual is either misleading on
> > array_walk, or, oh no WRONG?
>
> >From the manual:
> Note: If function needs to be working with the actual values of the array,
> specify the first parameter of function as a reference. Then, any changes
> made to those elements will be made in the original array itself.
Marv Albert here with the instant replay... including the behind the
scenes action!!!
Phil learned of the array_walk() function, but he didn't fully read the
manual about it, so couldn't get it to work.
Phil goes ahead and posts in several places about it:
* Here on the NYPHP Talk mailing list
* http://forums.nyphp.org/index.php?s=6a864e7ce96614312a68fc4f4b5a0fa2&showtopic=52&st=0&#entry150
* http://www.dbforums.com/t968865.html
* http://www.phpfreaks.com/forums/viewtopic.php?p=38181#38181
* http://groups.google.com/groups?q=powell+array+walk+php&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=1cdca2a7.0311061401.6f9bed04%40posting.google.com&rnum=1
Then, back here on the list, Adam is kind enough to tell him how to get it
to work.
But Phil still misses the point and thinks he's found a bug in PHP or the
manual.
Now, Daniel goes to the manual for Phil and cuts and pastes the crucial
text from the manual right here for him, PLUS provides an example.
Folks, stay in your seats, the game's not over yet!!!
--Dan "And Phil wonders why I give him a hard time..." Convissor
--
FREE scripts that make web and database programming easier
http://www.analysisandsolutions.com/software/
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
More information about the talk
mailing list