rtrim()
rtrim - Strip whitespace (or other characters) from the end of a string
Syntax
string rtrim (
string $str,
string $charlist)
Arguments
- str - The input string.
- charlist - You can also specify the characters you want to strip, by means of the charlist parameter. Simply list all characters that you want to be stripped. With..you can specify a range of characters.
Description
This function returns a string with whitespace stripped from the end of str.
Version
PHP 4, 5
Return value
Returns the modified string.