String.substr
substr — Extracts a specified number of characters in a string, from a start index.
Description
String.substr(integer begin, [integer length])
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
begin | Positive values count from beginning of string, whele negative count from the end. | integer | No | |
length | integer | Yes |
Return values
string primitive.
Examples
Example #1 – substr example