Copy code The code is as follows:
for($i=1;$i<10;$i++)
{
for($j=1;$j<=$i; $j++)
{
$result = $i*$j;
if(strlen($result)==2)
{
echo "$j*$i=$result";
echo " ";
}
else
{
echo "$j*$i=$result";
echo " ";
}
}
echo "
";
}
?>
The above introduces the implementation code of the mathematical multiplication table PHP small multiplication table, including the content of the mathematical multiplication table. I hope it will be helpful to friends who are interested in PHP tutorials.