PHP array_reverse() function returns an array containing elements in reversed order. code example Example: array reverse php array_reverse($array);