note 18822 deleted from function.trim by didou
| From: | didou@php.net | Date: | Mon, 09 Feb 2004 16:04:51 +0000 |
| Subject: | note 18822 deleted from function.trim by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64893@lists.php.net to get a copy of this message | ||
Note Submitter: rhelic@hotmail.com
----
[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); }