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


pop

Description

Removes the last element from an array and returns the value of that element.


Syntax

array1.pop()


Parameters

None


Returns

The last element of the array1.. For example:

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




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