left

Synopsis

$ left("string", n)

Returns the left n characters of "string"

Parameters

"string" - the string to get the characters from.

n - number of characters to grab

Returns

A scalar string.

Examples

println(left("abcde", 3));

abc

See Also