left() Function

Function

left( text, num_chars )

Returns a specified number of characters from the text, starting from the first character.

Parameters

Keyword Type Description

text

Text

The text from which the substring will be taken.

num_chars

Number

The length in characters of the subtext to extract.

Returns

Text

Examples

You can experiment with this function in the test box below.

Test Input

left("boston",3) returns bos

Open in Github Built: Fri, Dec 03, 2021 (02:38:50 PM)

On This Page

FEEDBACK