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

WBOY
Release: 2016-07-29 08:46:05
Original
1155 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!