#18003 [Opn]: trim() to accept arrays as argument
| From: | maxim@php.net | Date: | Mon, 11 Nov 2002 00:18:39 +0000 |
| Subject: | #18003 [Opn]: trim() to accept arrays as argument | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-24470@lists.php.net to get a copy of this message | ||
ID: 18003
Updated by: maxim@php.net
Reported By: carlos@wfmgh.org.pl
Status: Open
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.2.1
New Comment:
Trim is a stricly string function, I don't see any need giving it an
array as argument...
It is so easy to do with php by applying array_walk() to your array or
simply looping it... If your case really needs it tyou hen can just add
it into sources yourself.
On the other hand, there are already string functions that accept
arrays in place of strings returning elaborated lements...
Anyone? Leave this request or close it?
Previous Comments:
------------------------------------------------------------------------
[2002-06-26 18:10:21] carlos@wfmgh.org.pl
+1 from me to make trim() understanding array as 1st argument and in
that case trim all elements in array each by each.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18003&edit=1