My array contains a dynamic amount of element. they are grouped in 4. so
array
[0] -> "group one"
[1] -> "group one"
[2] -> "group one"
[3] -> "group one"
[4] -> "group two"
[5] -> "group two"
[6] -> "group two"
[7] -> "group two"
[8] -> "group three"
[9] -> "group three"
[10] -> "group three"
[11] -> "group three"
What I want to do is output and test all the elements i each group in one loop, add then do the same with the next group.
I suspect it should be easy.. using a counter to keep track of how many outputs etc, but apparently my brain wont work properly on this problem :)
Thanks to anyone who bothers helping me :)