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 :


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

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