note 115220 added to function.array-walk
| From: | chaleyatbrtransportdotcom | Date: | Mon, 16 Jun 2014 12:46:52 +0000 |
| Subject: | note 115220 added to function.array-walk | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199687@lists.php.net to get a copy of this message | ||
There is a note about 3 years ago regarding using this for trimming. array_map() may be cleaner for
this. I haven't checked the time/resource impact:
$result = array_map("trim", $array);
----
Server IP: 72.52.91.14
Probable Submitter: 70.91.12.217
----
Manual Page -- http://php.net/manual/en/function.array-walk.php
Edit -- https://master.php.net/note/edit/115220
Del: integrated -- https://master.php.net/note/delete/115220/integrated
Del: useless -- https://master.php.net/note/delete/115220/useless
Del: bad code -- https://master.php.net/note/delete/115220/bad+code
Del: spam -- https://master.php.net/note/delete/115220/spam
Del: non-english -- https://master.php.net/note/delete/115220/non-english
Del: in docs -- https://master.php.net/note/delete/115220/in+docs
Del: other reasons-- https://master.php.net/note/delete/115220
Reject -- https://master.php.net/note/reject/115220
Search -- https://master.php.net/manage/user-notes.php