in reply to Re: Skipping Elements in an Array
in thread Skipping Elements in an Array
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; }
|
|---|