ID: 30646 Updated by: [EMAIL PROTECTED] 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
