Bug #12521 Updated: chop(), trim() enhancements
| From: | jeroen@php.net | Date: | Wed, 01 Aug 2001 20:40:50 +0000 |
| Subject: | Bug #12521 Updated: chop(), trim() enhancements | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-61780@lists.php.net to get a copy of this message | ||
ID: 12521
Updated by: jeroen
Reported By: e@arix.com
Old Status: Open
Status: Assigned
Bug Type: Feature/Change Request
Operating System: Linux RH 7.1
PHP Version: 4.0.4pl1
Old Assigned To:
Assigned To: jeroen
New Comment:
Good idea. The second parameter should IMO be a string containing all characters to be chopped, or
like addcslashes.
Assigning to myself, if anyone has any objections/remarks, please mail me. I think the c-slashes way
is the best.
Previous Comments:
------------------------------------------------------------------------
[2001-08-01 16:31:53] e@arix.com
it would be useful if the chop() and trim() functions accepted an optional second parameter
indicating what to chop or trim, instead of simply assuming one wants to remove whitespace. In Perl
the $/ varialbe controls what is chopped, but a parameter would be nicer!
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12521&edit=1