There are many types of loop in PHP are available, But while loop play very important role in PHP.
There are 2 standard types of while loops.
Type 1: while loop
While loop tells PHP interpreter to execute the nested statement(s) repeatedly, as long as the while expression evaluates to TRUE. The value of the expression is checked each time at the beginning of the loop, so even if this value changes during the execution of the nested statement(s), execution will not stop until the end of the iteration. Sometimes, if the while expression evaluates to FALSE from the very beginning, the nested statement(s) won’t even be run once.In while you can define group multiple statements with curly braces.