Home  >  Article  >  Backend Development  >  PHP simple example--print out the 99 multiplication table

PHP simple example--print out the 99 multiplication table

巴扎黑
巴扎黑Original
2016-11-22 16:43:481719browse

<?php
//php打印出九九乘法表
for ($i=1; $i<10; $i++){
for ($j=1; $j<=$i; $j++){
echo $j*$i;
echo &#39; &#39;;
}
echo &#39;<br />&#39;;
}
?>


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:phpExcel export excelNext article:phpExcel export excel