Bug #12521 Updated: chop(), trim() enhancements
| From: | jeroen@php.net | Date: | Fri, 03 Aug 2001 22:19:20 +0000 |
| Subject: | Bug #12521 Updated: chop(), trim() enhancements | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-62013@lists.php.net to get a copy of this message | ||
ID: 12521
Updated by: jeroen
Reported By: e@arix.com
Old Status: Assigned
Status: Closed
Bug Type: Feature/Change Request
Operating System: Linux RH 7.1
PHP Version: 4.0.4pl1
Assigned To: jeroen
New Comment:
In CVS, will probably be in PHP 4.0.7
It uses the addclashes way of specifying what to chop, as second parameter.
Previous Comments:
------------------------------------------------------------------------
[2001-08-01 16:40:49] jeroen@php.net
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.
------------------------------------------------------------------------
[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