Loop is used to execute a part of the code more than once until the condition is true.
We have the following loops in php :
1.for loop
2.foreach loop
3.while loop
4.do...while loop