LTrim()
Removes leading spaces from a string.
LTrim( 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 leading spaces
writeDump("-" & LTrim(foo) & "-");
See also
- Strings
- RTrim()
- Trim()
- TrimWhitespace()
- string.ltrim()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)