php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #30646 rtrim/ltrim summary only says strips whitespace
Submitted: 2004-11-01 10:56 UTC Modified: 2004-12-29 18:26 UTC
From: phpbugs at localpin dot com Assigned: mez (profile)
Status: Closed Package: Documentation problem
PHP Version: 4.3.9 OS: N/A
Private report: No CVE-ID: None
 [2004-11-01 10:56 UTC] 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.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-29 18:26 UTC] mez@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Mar 16 00:01:29 2025 UTC