1 |
for ( beginning expression; endtest; doeachloop ) {
|
2 | is just like C and equivalent to: |
3 | beginning-expression; |
4 |
while ( endtest) {
|
5 | For example, we can print the numbers 1 through 10 with: |
6 |
for ($index=1; $index <=10; $index++ ) {
|