str_pos
Returns character(s) at position. Negative pos counts from end.
str_pos(
str,
pos,
[num=1]
) -> STRING
Returns character(s) at position. Negative pos counts from end.
Syntaxe
var result = str_pos("Hello World", 0)
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
str | yes | - | Source string | |
pos | yes | - | Position (0-based, negative counts from end) | |
num | - | 1 | Number of characters to return |