Onetastic Macro Documentation >
>
>
Array_Reverse Array_Reverse
Reverses the order of elements in the given array.
Syntax
void Array_Reverse(
byref Array array,
Bool preserveKeys)
Parameters
- Array array
- Array to reverse.
- Bool preserveKeys
- If true, the values in the array will have the same keys as before, but just order changed. If false, the values will be assigned to new numeric keys starting from zero.
Examples
$array = Array(2, 4, 6, 8, 10)
Array_Reverse($array, false)
$array1 = Array(2, 4, 6, 8, 10)
Array_Reverse($array1, true)
|