Core Function Rev
From Sputnik Wiki
Rev( <array> )
Contents |
Description
Returns a new array consisting of the reverse of another array.
Parameters
array
The array to use.
Return Value
Success - Returns reversed.
Failure - Returns empty array.
Remarks
This does not reverse Hash values only the Array values.
Example
$array = array ( "One", "Two", "Three", "Four" ); my $NewArray = Rev($array); $i = 0; Foreach ( $NewArray as $i ) { println("Element ($i) is: " . $i); $i++; }