note 111779 added to function.array-walk

From: Date: Wed, 27 Mar 2013 22:09:04 +0000
Subject: note 111779 added to function.array-walk
Groups: php.notes 
Request: Send a blank email to php-notes+get-194235@lists.php.net to get a copy of this message
For all those people trying to shoe-horn trim() into array_walk() and have found all these tricks to work around the issue with array_walk() passing 2 parameters to the callback... Check out array_map(). http://php.net/array_map It's all sorts of win. For the record. I'm one of these people and after 15 years of php development I'm pleased to say that there's still things I'm learning. :) I just found out about array_map() myself... ---- Server IP: 69.147.83.199 Probable Submitter: 202.78.240.7 ---- Manual Page -- http://php.net/manual/en/function.array-walk.php Edit -- https://master.php.net/note/edit/111779 Del: integrated -- https://master.php.net/note/delete/111779/integrated Del: useless -- https://master.php.net/note/delete/111779/useless Del: bad code -- https://master.php.net/note/delete/111779/bad+code Del: spam -- https://master.php.net/note/delete/111779/spam Del: non-english -- https://master.php.net/note/delete/111779/non-english Del: in docs -- https://master.php.net/note/delete/111779/in+docs Del: other reasons-- https://master.php.net/note/delete/111779 Reject -- https://master.php.net/note/reject/111779 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194235) next »