-
Notifications
You must be signed in to change notification settings - Fork 1
array_reverse
Hyomoto edited this page Jun 13, 2021
·
2 revisions
Jump To | Go Back |
Arguments |
---|
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]
Name | Type | Purpose |
---|---|---|
array | array |
The array to reverse |
Devon Mullane 2020