<?php
//2Dimenziós tömb feltöltése ciklussal
$tomb2D = array();
echo "<table border=\'1\'>";
for ($i=1; $i<=10; $i++){
echo "<tr>";
for($j=1; $j<=10; $j++){
$tomb2D[$i][$j] = $i*$j;
echo "<td>".$tomb2D[$i][$j]."</td>"; // PLUSZ Kiíratás!
}
echo "</tr>";
}
echo "</table>";
// eredmény: 10x10-es szorzótábla
?>