ExCellerate.Functions.General.Left (excellerate v0.4.0)

Copy Markdown View Source

Returns the first n characters from a string.

When called with one argument, returns the first character. With two arguments, returns the first n characters.

Examples

left('Hello World', 5)  'Hello'
left('Hello')           'H'
left('Hi', 10)          'Hi'