Today began to learn PHP, in order to learn PHP to buy a book, but the book is a tome, not good with no good study, I decided to split the book chapter to see, so it is also convenient to take the task can also be completed quickly.
Today on Linux Mint 17 installed the LNMP environment and brackets tools, to learn PHP, small example with vim to complete.
Record your own landscaping of the 99 multiplication table
The code is as follows:
<?php for ($i =1; $i <=9; $i + +) { for ($j =1, $j <=9; $j + +) { if ($i >= $j) { echo "$j * $i = ". $j * $i; if ( $i * $j >= 10 ) { echo " "; } else { echo " "; } } } echo "<br>"; }?>
As follows:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/3E/D3/wKiom1PHzA2SgrQfAAFtzD9eEVU722.jpg "title=" Selection _ 003.png "alt=" Wkiom1phza2sgrqfaaftzd9eevu722.jpg "/>
Modify the display effect so that each column is on a column, looking neat and nice,