Lets say I have an array
$aSomeArray = array("1","2","3","4","5","6","7","8","9","10","11","12");
Now displaying one array value in one table row is easy like this
echo "<table>";
foreach ($aSomeArray as $iSomeArrayKey => $iSomeArrayValue)
{
echo "<tr>";
echo "<td>".$iSomeArrayValue."</td>";
echo "</tr>";
}
echo "</table>";
But I want to display the values in table format like this
1 2 3 4
5 6 7 8
9 10 11 12
How can I achieve this ?
Edited, this works: