View Single Post
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#2
Removing elements from the array you're iterating through is never going to work well. I'm not sure that it's actually matching what you think it is.