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
There are no comments on this page. [Add comment]