Roger Ramjet wrote:
Now if you want your data in descending columns eg:
1 5 9
2 6 10
3 7 11
4 8
then that can also be done quite simply.
Hi, I just came across this post while searching for a solution for what you just mentioned. How do you set things up to display in descending columns?
Here's my particular setup:
$data = array(
array('1','2','3','4'),
array('5','6','7','8'),
array('9','10','11','12'),
);
Each sub-array in my $data should be a column, while each element in the sub-arrays should become a row, resulting in a table like this:
1 | 5 | 9
2 | 6 | 10
3 | 7 | 11
4 | 8 | 12
Now I'm not sure how to loop this... Any ideas?