remove

removes an element from an array

Syntax

remove(val)

Returns

returns (undefined)

Parameters

val (var)
removes all instances from array

Usage

var data = ['this', 'is', 'an', 'example', 'array'];
data.remove("example");
echo( objectToString(data) );

/* the contents of data is now
[
  "this",
  "is",
  "an",
  "array"
]
*/