note 46304 added to function.trim
| From: | root at andthesito dot net | Date: | Wed, 06 Oct 2004 11:33:15 +0000 |
| Subject: | note 46304 added to function.trim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78064@lists.php.net to get a copy of this message | ||
About trim all elements in an array.
May be
array_walk($db ,create_function('&$arr','$arr=trim($arr);'));
could be better than :
foreach ($db as $key=>$value) { $db[$key]=trim($value); }
----
Manual Page -- http://www.php.net/manual/en/function.trim.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46304
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46304&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46304&report=yes
Search -- http://master.php.net/manage/user-notes.php