Usage

Syntax: obj.clear();

Explanation

Is often used to clear/delete an array, make it empty. Can also be used to initialize an array.

Example

function onCreated()
{
  temp.foo = {"foo", "foo", "baz", "bar", "foo"};
  temp.foo.clear();
  
  echo(temp.foo);
}

... Will echo nothing, since the array is empty (cleared).

Categories

CategoryObjectFunction
CategoryFunctionClientside
CategoryFunctionServerside
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki