mid

Synopsis

$ mid("string", start, [length])

Returns a substring of the specified "string" starting from the start index followed by the next n chars

Parameters

"string" - the string to grab a substring of.

start - the start index. (defaults to 0)

length - number of characters to grab starting at the start index.

Returns

The specified substring.

Examples

$string = "abcdefghijklmnopqrstuvwxyz"; $substr = mid($string, 13, 5); println($substr);

nopqr

See Also