In the future, you might try seeing if the question has already been addressed by using 'search'. For example, this question was answered here, which I found by simply putting 'for foreach' in the search box.
In reply to (kudra) Re: difference between for and foreach?
by kudra
in thread difference between for and foreach?
by john1987
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |