PHP: array_reverse Manual

The array_reverse function is used to reverse the order of the elements in an array. This function was introduced in PHP 4.0. The array_reverse() function is used to reverse the order of the elements in an array. Set the $preserve_keys to true to preserve the keys in the original array. Let’s take some examples of…