Description
Removes the first element from an array and returns that element.
Syntax
array1.shift()
Parameters
Returns
The first element in an array. example:
a = new Array("a", "b", "c", "d");
trace(a.shift());
//output: a
trace(a);
//output: b,c,d