Yes, that too was my first thought. But, I actually had 10 nested foreach loops, and the programmer inside said "sounds like an array", so I tried to use elements of an array as the iterators. As always, TMTOWTDI.
Comment on Re^2: array element as foreach iterator