note 18822 added to function.trim
| From: | rhelic at hotmail dot com | Date: | Wed, 06 Feb 2002 18:48:49 +0000 |
| Subject: | note 18822 added to function.trim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26307@lists.php.net to get a copy of this message | ||
If you need to trim() each value of an array (be it normal or associative) just do:
foreach ($db as $key => $value) { $db[$key] = trim($value); }
--
http://www.php.net/manual/en/function.trim.php
http://master.php.net/manage/user-notes.php?action=edit+18822
http://master.php.net/manage/user-notes.php?action=delete+18822
http://master.php.net/manage/user-notes.php?action=reject+18822