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.
String
substr(<parameters>)
Parameter | type |
---|---|
string | string |
beginIndex | integer |
endIndex | integer |
substr(<string>,<beginIndex>)
substr(<string>,<beginIndex>,<endIndex>)
Return a string.
substr("Hello World",6)
Returns “World”.
substr("Hello World", 0, 5)
Returns “Hello”.