By: htvu
Date: 2006-04-03
Time: 05:56
|
Multi column with one array
How to display data of an array on multi column
Ex:
$arr[0] = array('id'=>1, 'name'=>'A');
$arr[1] = array('id'=>2, 'name'=>'B');
$arr[2] = array('id'=>3, 'name'=>'C');
$arr[3] = array('id'=>4, 'name'=>'D');
$arr[4] = array('id'=>5, 'name'=>'E');
I want to display data in a table like this:
1 A 2 B
3 C 4 D
5 E
|
By: Skrol29
Date: 2006-04-03
Time: 11:50
|
Re: Multi column with one array
Hello,
If the number of column is fixed, like in your example, you can do it using parameter 'serial'. There is an example on line at the Example pages.
|