next up previous contents
Next: shift Up: Methods Previous: push   Contents


reverse

Description

Reverses the array in place.


Syntax

array1.reverse()


Parameters

None


Returns

Nothing. example:

a = new Array("a", "b", "c", "d");
a.reverse();
trace(a);
//output: d,c,b,a




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.