Home >Backend Development >PHP Tutorial >php 小乘法表实现代码_PHP

php 小乘法表实现代码_PHP

WBOY
WBOYOriginal
2016-06-01 12:23:15958browse
复制代码 代码如下:
for($i=1;$i{
for($j=1;$j{
$result = $i*$j;
if(strlen($result)==2)
{
echo "$j*$i=$result";
echo " ";
}
else
{
echo "$j*$i=$result";
echo "  ";
}
}
echo "
";
}
?>

随便写写小程序,促进自己对php的热情,希望我能坚持下去
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn