Take a look at splice. shift and pop remove values from the ends of an array, not the current position.
In reply to Re: Re: Re: Re: Re: walking an array and unshifting
by dsheroh
in thread walking an array and unshifting
by smackdab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |