rtrim() - string
This function returns a string with whitespace (or other characters) stripped from the
end of str.
Parameters :
str - The input string. character_mask - You can also specify the characters you want to strip, by means
of the character_mask parameter.
Simply list all characters that you want to be stripped. With
.. you can specify a range of characters.
Syntax
string rtrim
( string $str
[, string $character_mask
] )
Example
Output / Return Value
Limitations
Alternatives / See Also
Reference