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

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki