I'm with tobyink on this one--since you're leaving your foreach immediately after changing the array, I don't see how it could/should matter.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: foreach argument modification inside loop, followed by return from loop
by roboticus
in thread foreach argument modification inside loop, followed by return from loop
by vsespb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |