Usage
Syntax: string.substring(index[, length]);
Returns string.
Explanation
Extracts a sub-string starting at index and stopping at the end of the string.
If the optional parameter length is specified, the resulting string will be of the same length and starting at index.
Example
function onCreated() { temp.foo = "Hello World!"; echo(temp.foo.substring(1)); echo(temp.foo.substring(6, 5)); }
... Will echo "ello World!" and "World".
Categories
CategoryObjectFunction
CategoryFunctionClientside
CategoryFunctionServerside
There are no comments on this page. [Add comment]