I can't imagine it ever causing problems. It's really the iteration of the loop after the modification where foreach can get confused.
In reply to Re: foreach argument modification inside loop, followed by return from loop
by tobyink
in thread foreach argument modification inside loop, followed by return from loop
by vsespb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |