PHP Loops
Loops are used in programming to iterate over an item, either for a known or unknown amount of times, until a certain criteria has been reached.
You have the choice of writing a single loop and specifying how it ends and writing the same code over and over again to satisfy every iteration of the loop (this will only work if you know the number of times the loop will run). The choice is yours.
Read more