PHP array_reverse() Function

The array_reverse() function returns an array in the reverse order.Takes an input array and returns a new array with the order of the elements reversed.

Example -

Example -