ArrayDeleteAt()
Deletes an element from an array and resizes the array so that the deleted element doesn't leave a gap.
ArrayDeleteAt( array=array, position=number );
Returns: Boolean
Examples
Deletes an array element by its index
arr = [12,0,1,2,3,4,5,6];
dump(arr);
arrayDeleteAt(arr,4);
dump(arr);
Deletes an array element by its index (member function)
arr = [12,0,1,2,3,4,5,6];
dump(arr);
arr.deleteAt(4);
dump(arr);
See also
- Arrays
- array.deleteAt()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)