I'd like to fill a table vertically. For example one name on one row, the age on the second row alternately, and limit the table to 4 columns:

![table](https://i.stack.imgur.com/gmKFP.jpg)

Is this possible with this kind of code?

Here is my Code:

```
<?php
$age = array("26","16","17","19","24","30");
$name = array("adam","andrew","tim","mike","don","eddy");
echo "<table border=1>";
for($i=0;$i<count($age);$i++)
{
    if ($i > 0 && $i % 4 == 0)
    {
        echo "</tr><tr>";
    }
    echo "<td>";
    echo $name[$i];
    echo "</td>";
    echo "<td>";
    echo $age[$i];
    echo "</td>";
}
echo "</tr>";
?>

```