hope this would help.
In reply to Re: Array slice vs foreach and push by vinian in thread Array slice vs foreach and push by chrisburel