The [array->reverse] reverses all of the elements in the array so the last element is first and vice versa. The array is modified in-place and no result is returned.
array->reverse
This example takes an array of the days of the week and reverses their order within the array.
Code
var( DaysOfWeek = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat') )
$DaysOfWeek->reverse
//modified array
$DaysOfWeek
Result
array(Sat, Fri, Thu, Wed, Tue, Mon, Sun)
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments