<?php //99乘法表 for($i=1;$i<=9;$i++) //执行9次 { for($z=1;$z<=9;$z++) //上面每执行一次,这里就执行9次。 { $a=$i*$z; echo $i.'*'.$z.'='.$a.'|'; } echo '<br/ >'; } ?>