Usage
Syntax: obj.insertarray(int index, obj)
Note: obj are both arrays
Explanation
Takes all the values from the input array (obj) and inserts them in the array starting at index. Note that it will not put the array itself at index.
Example
function onCreated() { temp.foo = {"2", "3"}; temp.foo.insertarray(0, {"1", "4"}); echo(foo); }
... Will output 1,4,2,3 in RC when on the serverside, or in your F2 menu when on the clientside.
Categories
CategoryObjectFunction
CategoryFunctionClientside
CategoryFunctionServerside