in reply to Removing an element from an array

shift() and pop() might be what you are after. There is documentation for these on this site. Have you tried searching for "remove element from array" In the search box, top left of this page? I found some good suggestions there.