Removes leading spaces from a string.
A copy of the string without leading spaces.
LTrim(string)
Parameter |
Description |
|---|---|
string |
A string or a variable that contains a string. |
<cfscript>
myString=LTrim(" Mary had a little lamb"); // The input string has leading spaces
WriteOutput(myString);
</cfscript>
Mary had a little lamb
Sign in to your account