While loop will exicute a block of code if and as well as condition is true.if condition is false
then it will goes to next condition.

while statement :

while(expr)
statement

the meaning of a while statement is, it tells php to exicute the nested statement repastedly, as long as
condition is true

EX:
//php start here
$i=1;
while($i <=10); echo $i; $i++; endwhile; //php end here