If any part of LIST is an array, foreach will get very confused if you add or remove elements within the loop body, for example with splice. So don't do that.I should add for the record that I once asked the same question myself.
In reply to Re^5: self-feeding infinite loop
by Errto
in thread self-feeding infinite loop
by spx2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |