<html> <head><title>nested loops</title></head> <body> <?php
echo("<table width=400><tr>");
for ($table=1; $table <=3; $table++) {
echo("<td>");
for($line=1; $line <=12; $line++) {
echo ("$line x $table = ");
echo ($line*$table . "<br>");
}
echo "</td>";
}
echo("</tr></table>");
?>
</body>
</html>