RTrim()
Removes spaces from the end of a string.
RTrim( string=string );
Returns: String
| Argument | Description |
|---|---|
|
string
string,
required
|
edit
A string or a variable that contains one |
Examples
edit // 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 open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)