array array_reverse
array_reverse() takes input array and returns a new array with the order of the elements reversed.
Example 1. array_reverse() example
1 2 $input = array ("php", 4.0, array ("green", "red")); 3 $result = array_reverse ($input); 4
Note: This function was added in PHP 4.0 Beta 3.