note 18822 modified in function.trim by didou
| From: | didou@php.net | Date: | Sun, 18 May 2003 02:31:22 +0000 |
| Subject: | note 18822 modified in function.trim by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48338@lists.php.net to get a copy of this message | ||
[Editor's note
or just do array_filter($db, 'trim');
--didou]
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); }
--was--
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