PHP for and foreach loop statement
It is used when one knows how many time one need to run the particular loop. It is also of two types: 1. PHP for loop statement Loop back again and again through specified time duration. Read More PHP while loop PHP do while loop PHP for loop syntax:
1 2 3 | for (initialization; condition check; increment/ decrement counter) { code to be executed; } |
Example: PHP for loop example … Read more