PHP Programming/for loop - Wikibooks, open books for an open world

PHP Programming/for loop - Wikibooks, open books for an open world

瀏覽:872
日期:2024-08-05
The basic syntax of the for loop in PHP is similar to the C syntax: for ([initialization]; [condition]; [step]) ... When the loop runs for the first time, it prints the initial value of $i which in the case of the example is 0. For every loop, the variabl...看更多