// statements that will be executed
While loop is used to execute a set of statements repeatedly until a condition becomes false. The loop executes round and round while the condition is true. When the condition becomes false, the loop breaks out or terminates of the loop.
while($num<=5)//While the variable ‘num’ is less than or
// equal to 5.
echo $num."<br />";
See AlsoFor Loop
Do While Loop