substr substr

Returns the sub-string of the string expression between the begin index and the end index. If the end index is not defined, then it is between the begin index and the end.

Category

String

Function syntax

substr(<parameters>)

Parameters

Parameter
type
string
string
beginIndex
integer
endIndex
integer

Signature and returned type

substr(<string>,<beginIndex>)

substr(<string>,<beginIndex>,<endIndex>)

Return a string.

Example

substr("Hello World",6)

Returns “World”.

substr("Hello World", 0, 5)

Returns “Hello”.

recommendation-more-help
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9