in reply to Re: Re: Re: Re: walking an array and unshiftingin thread walking an array and unshifting
Take a look at splice. shift and pop remove values from the ends of an array, not the current position.