Core Function Rev
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> Rev( <array> ) </pre> === Description === Returns a new array consisting of the reverse of another array. === Parameters === ==== array ==== The array to use. === Ret...")
Newer edit →
(Created page with "<pre> Rev( <array> ) </pre> === Description === Returns a new array consisting of the reverse of another array. === Parameters === ==== array ==== The array to use. === Ret...")
Newer edit →
Revision as of 14:22, 27 January 2013
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 include Hash values with 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++; }