for (init counter; test counter; increment counter) {
code to be executed for each iteration;
}
The PHP while Loop
The while loop executes a block of code as long as the specified condition is true.
Syntax
while (condition is true) {
code to be executed;
}
`