"; echo ""; for($i=1;$i<=9;$i++){ echo ""; for($j =1;$j<=$i;$j"/>

"; echo "
"; for($i=1;$i<=9;$i++){ echo ""; for($j =1;$j<=$i;$j">

Home >Backend Development >PHP Tutorial >evacuate the dancefloor PHP introductory learning knowledge point 8 Basic application of for loop in PHP - ninety-nine multiplication table

evacuate the dancefloor PHP introductory learning knowledge point 8 Basic application of for loop in PHP - ninety-nine multiplication table

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-29 08:46:051240browse

Copy the code The code is as follows:


/*
*Print the oral multiplication table
*/
echo "Nine Spirits Nine Multiplication Oral Table

< br>";
echo "

";
for($i=1;$i<=9;$i++){
echo "";
for($j=1;$j< ;=$i;$j++){
echo "";
}
echo "";
}
echo "
".$j."*".$i."=".($j*$i)."
";
echo "





" ;
echo "";
for($i=1;$i<=9;$i++){
echo "";
for($j=$i;$j<= 9;$j++){
echo "";
}
echo " ";
}
echo "
".$i."*".$j."=".($j*$i)."
";
?>

The above introduces the eight knowledge points for introductory learning of evacuate the dancefloor PHP. The basic application of for loop in PHP is the nine-nine multiplication table, including the content of evacuate the dancefloor. I hope it will be helpful to friends who are interested in PHP tutorials.

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
Previous article:photoshop cs2 v9.0 green Chinese version PHP entry learning knowledge point seven basic application of PHP functionsNext article:photoshop cs2 v9.0 green Chinese version PHP entry learning knowledge point seven basic application of PHP functions

Related articles

See more