Description

Removes spaces from the end of a string.

Returns

A copy of string, after removing trailing spaces.

Category

String functions

Function syntax

RTrim(string)

See also

LTrimTrim

Parameters

Parameter

Description

string

A string or a variable that contains one

Example

<cfscript>
    string="This is a sample string        "
    writeOutput(RTrim(string))
</cfscript>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy