Name
array_reverse
Synopsis
array array_reverse(arrayarray
[, boolpreserve_keys
])
Returns an array containing the same elements as the input array, but
whose order is reversed. If the second parameter is given and is
true
, the keys for the elements are preserved; if
not, the keys are lost.
Get Programming PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.