Core Function Rev
From Sputnik Wiki
(Difference between revisions)
(→Remarks) |
m (1 revision) |
Revision as of 21:40, 11 August 2014
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++; }