Name

rtrim() — Trim characters from the end (right) of a string

Common Usage

rtrim( text, extra )
rtrim( text )

Description

The rtrim() function returns a copy of text that has been stripped of any suffix that consists solely of characters from extra . Characters from extra that are contained in the body of text remain untouched.

If extra is not provided, it is assumed to consist of the ASCII space (0x20) character. By default, tab characters and other whitespace are not trimmed.

See Also

ltrim(), trim()