for循环案例乘法口诀 for($i=1;$i<10;$i++){ for($j=1;$j<=$i;$j++){ echo $j.'x'.$i.'='.$j*$i.' '; } echo '<br />';} 效果