RTrim()
Removes spaces from the end of a string.
RTrim( string=string );
Returns: String
Examples
// create variable with a string of text that has leading and trailing spaces
foo = " Hello World! ";
// output variable
writeDump("-" & foo & "-");
// output variable without trailing spaces
writeDump("-" & RTrim(foo) & "-");
See also
- Strings
- LTrim()
- Trim()
- TrimWhitespace()
- string.rtrim()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)