substring

Extracts a substring from another string.

Syntax

substring(string, start, len)

Parameters

string

Specifies the original string.

start

Specifies the position in the string where the substring starts.

len

Specifies the length of the desired substring.

Returns

Returns a string of len characters beginning at index specified by start.