Forum Moderators: coopster
foreach($array1 AS $key => $value) {
<td>$value</td><td>array2[$key]</td><td>array3[$key]</td>
} If the arrays don't have the same sets of indexes (as they don't in your example), but each index has a numerical component that advances by one per row (as in your example), you could first run some loops to get rid of the text parts of the indexes (or don't include the text in the first place).
for ($i=0; $i < count($array1); $i++) {
$val1 = array_shift($array1);
$val2 = array_shift($array2);
$val3 = array_shift($array3);
print "<td>$val1</td><td>$val2</td><td>$val3</td>";
}
The above will destroy the arrays. You could make copies if that was an issue.