Description

Removes leading spaces from a string.

Returns

A copy of the string without leading spaces.

Category

Syntax

LTrim(string)

See also

Parameters

Parameter

Description

string

A string or a variable that contains a string.

Example

<cfscript>
       myString=LTrim("   Mary had a little lamb"); // The input string has leading spaces
       WriteOutput(myString);
</cfscript>

Output

Mary had a little lamb

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