Php small multiplication table implementation code. Copy the code as follows :? Phpfor ($ i1; $ i10; $ I ++) {for ($ j1; $ j $ I; $ j ++) {$ result $ I * $ j; if (strlen ($ result) 2) {echo $ j * $ I $ result; echo;} else {echo $ j * $ I $ result;
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"
";
}
?>
Write a small program at will to promote your enthusiasm for php. I hope I can stick to it.
The http://www.bkjia.com/PHPjc/320294.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/320294.htmlTechArticle code is as follows :? Php for ($ I = 1; $ i10; $ I ++) {for ($ j = 1; $ j = $ I; $ j ++) {$ result = $ I * $ j; if (strlen ($ result) = 2) {echo "$ j * $ I = $ result"; echo "";} else {echo "$ j * $ I = $ result ";...