ArrayDelete()
Deletes specified object from given array
ArrayDelete( array=array, value=object, scope=string );
Returns: Boolean
Examples
Deletes an array element by its value
arr = [12,0,1,2,3,4,5,6];
dump(arr);
arrayDelete(arr,4);
dump(arr);
Deletes an array element by its value (member function)
arr = [12,0,1,2,3,4,5,6];
dump(arr);
arr.delete(4);
dump(arr);
See also
- Arrays
- array.delete()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)