Left()
Returns a substring from beginning of the input string, with a length specified by the count argument.
Left( string=string, count=number );
Returns: String
Examples
dump( left('abcd',3) ); // abc
dump( left("Peter", -1) ); // Pete
See also
- Strings
- Right()
- string.left()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)