in reply to foreach argument modification inside loop, followed by return from loop

vsespb:

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.

  • Comment on Re: foreach argument modification inside loop, followed by return from loop