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

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

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