Usage
Syntax: array.insert(int index, obj)
Explanation
Will add a variable (obj) to an array. The variable (obj) will be placed at the index given.
Example
function onCreated() { temp.array = {"foo", "bar"}; temp.array.insert(0, "baz"); echo(temp.array); }
... Will output {"baz", "foo", "bar"} in RC when on the serverside, or in your F2 menu when on the clientside.
Categories
CategoryObjectFunction
CategoryFunctionClientside
CategoryFunctionServerside