<?php
header("Content-type:text/html;charset=utf-8");
echo"9*9乘法表";
echo'<table border="1">';
for ($i=1; $i < 10; $i++) {
echo'<tr>';
for ($j=1; $j < 10 ; $j++) {
echo'<td>';
if ($j > $i) {
continue;
}
echo$j.'*'.$i.'='.$i*$j.' ';
echo'</td>';
}
echo'</tr>';
echo'<br/>';
}
echo'</table>';
echo'<table border="1">';
for ($i=1; $i < 10; $i++) {
echo'<tr>';
for ($j=9; $j >= 1 ; $j--) {
echo'<td>';
if ($j > $i) {
continue;
}
echo$j.'*'.$i.'='.$i*$j.' ';
echo'</td>';
}
echo'</tr>';
echo'<br/>';
}
echo'</table>';
echo'<table border="1">';
for ($i= 9; $i >= 1; $i--) {
echo'<tr>';
for ($j=1; $j < 10 ; $j++) {
echo'<td>';
if ($j > $i) {
continue;
}
echo$j.'*'.$i.'='.$i*$j.' ';
echo'</td>';
}
echo'</tr>';
echo'<br/>';
}
echo'</table>';
?>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });
以上就介绍了 PHP输出乘法口诀表,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。











