#30646 [Opn->Asn]: rtrim/ltrim summary only says strips whitespace
| From: | mez@php.net | Date: | Wed, 29 Dec 2004 17:21:56 +0000 |
| Subject: | #30646 [Opn->Asn]: rtrim/ltrim summary only says strips whitespace | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969365671@lists.php.net to get a copy of this message | ||
ID: 30646
Updated by: mez@php.net
Reported By: phpbugs at localpin dot com
-Status: Open
+Status: Assigned
Bug Type: Documentation problem
Operating System: N/A
PHP Version: 4.3.9
Assigned To: mez
Previous Comments:
------------------------------------------------------------------------
[2004-11-01 10:56:55] phpbugs at localpin dot com
Description:
------------
The summary for rtrim only says "Strip whitespace from the end of a
string" whereas in fact the function can be used to strip any
character. I suggest "Strip characters from the end of a string". The
detailed description can make it clear that the default character is
whitespace.
The docs are particularly misleading on the summary page, where a user
looking for a function to strip a non-whitespace char would have to
guess that the documentation was not correct! This is exactly what I
did.
http://be2.php.net/manual/en/ref.strings.php
Doc error occurs here also:
http://be2.php.net/manual/en/function.rtrim.php
Same case for ltrim.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30646&edit=1