I'm having a hard time understanding the php array_walk func

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sos
Forum Newbie
Posts: 7
Joined: Thu Jan 02, 2003 9:35 pm

I'm having a hard time understanding the php array_walk func

Post by sos »

I am stumped nothing is clicking. I am not seeing the logic, and its driving me mad.

array_walk adds a user defined function to every element in a array. please I am not understanding this and I will not rest until i do.

can someone shed some light on this function for me please by showing me a simple to follow example hopefully then I can follow.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

did you read http://php.net/array_walk ?
(at least) the example should be helpful ;)
Post Reply