I have
$arr=array(array(1,2,3),
array(4,5,6),
array(7,8,9),
array(10,11,12))
I need to display it in this order using for loop: 1,4,7,10,2,5,8,11,3,6,9,12. I have been busting my head for last two days on this, can anyone help me? Thanks
for($i = 0; $i < count($arr); $i++) { for($u = 0; $u <count($arr[$i]); $j++) { echo $arr[$i][$u]; echo '<br />'; } }