ArrayReverse()
Returns a new array, with all the elements reversed
ArrayReverse( array=array );
Returns: Array
Examples
Reverse the order of an array
numbers = [ 1, 2, 3, 4 ];
arrayReverse(numbers);
Dump( numbers ); //[4,3,2,1]
//member function
reversed = numbers.reverse();
Dump( reversed );
See also
- Arrays
- array.reverse()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)