34,333
edits
Changes
→PHP ''for'' loops
The ''conditional expression'' specifies the test to perform to verify whether the loop has been performed the required number of times. For example, if we want to loop 1000 times:
$i < 1000
Finally, the ''loop expression'' specifies the action to perform on the counter variable. For example to increment by 1: