View Single Post
  #12 (permalink)  
Old 05-23-2008, 12:21 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: Manipulating in array

shift() - Decreases array element size by one by shifting the first element off the array and returning it. This method is not defined so it must be written and included in your code.
Code:
words = new Array("limit","lines","finish","complete","In","Out")
word = words.shift()
The array, words, will be:
Code:
In, complete, finish, lines, limit
The string word will be:

Out
__________________
With,
J. Jeyaseelan

Everything Possible
Reply With Quote