Instead doing splice on the same @DIR which you used in the foreach, you can have a copy of @DIR and you can do splice on that array. For Ex. @DIR will be used in foreach, @DIR_COPY can be used in splice.
In reply to Re^3: Nested Foreach Loop skipping every other element??
by vinoth.ree
in thread Nested Foreach Loop skipping every other element??
by ba1688
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |