This will do 2 things for you: it will keep you from printing an element were length == 2 and will keep you from having to worry about the post increment.if (length ($Array[$i]) == 2) { $i += $num_of_skip + 1; next; }
In reply to Re^2: Skipping Elements in an Array
by gam3
in thread Skipping Elements in an Array
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |