for 迴圈,從 1 到 10
1
2
3
4
5
6
7
8
9
10
<?php for ( $i = 1; $i <= 10; $i=$i+1 ) { echo $i ; } ?>