array_reverse

array_reverse

(PHP 4, PHP 5, PHP 7)

array_reverseReturn an array with elements in reverse order

Description

array array_reverse ( array $array [, bool $preserve_keys = false ] )

Takes an input array and returns a new array with the order of the elements reversed.

Parameters

array

The input array.

preserve_keys

If set to 登录查看完整内容