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.