I have an interesting problem, seems like it would have been solved long ago but can't find anything.
I have a simple array, variable length.
I need to put the array in a table BUT only X columns wide. Meaning, if the array has 25 values, and I only want 3 columns, there will be 2 columns of 11 and 1 column of 3 (the remainder).
Like this (each number represents a value in a table cell):
1 12 23
2 13 24
3 14 25
4 15
5 16
6 17
7 18
8 19
9 20
10 21
11 22
I've spent all day afternoon this, seems like it would be simple, but either my game is off today or it's harder than I think.
Of course, no problem going horizontally, easy, but vertically is the requirement and I never know the size of the array and number of columns can vary.
Thanks for any help!
