<?php
for ($j = 2; $j <=9; $j++) {
print "$j".'단';
print "<br>";
for ($i = 1; $i <= 9; $i++){
$data = $i * $j;
print "$j x $i = $data";
print "<br>";
}
print "<br>";
}
<?php
for ($j = 2; $j <=9; $j++) {
print "$j".'단';
print "<br>";
for ($i = 1; $i <= 9; $i++){
$data = $i * $j;
print "$j x $i = $data";
print "<br>";
}
print "<br>";
}