reverseArray
method reverses the order of the elements in an array.
Syntax
reverseArray
Returns
returns (array) The array after it has been reversed.
Parameters
- array_source (array)
- source array
Usage
example:
echo(objectToString(reverseArray([0,1,2,3,4,5])));
output: [ 5, 4, 3, 2, 1, 0 ]