Skip to content

array_reverse

Hyomoto edited this page Jun 13, 2021 · 2 revisions
Jump To Go Back Arguments

array_reverse( array )

Returns: array

Throws: InvalidArgumentType

Returns a new array with the elements of the provided array reversed. If an array is not provided, InvalidArgumentType will be thrown.

array = array_reverse( [0, 1, 2, 3] );
Output: [3, 2, 1, 0]

Arguments

Name Type Purpose
array array The array to reverse
Clone this wiki locally