WHILE LOOP IN PHP
Code will execute continue till condition reached false.
Syntax:
initialization – set your counter above while loop
{
code here…
increment/decrement
}
Parameters :
condition – Loop will continue till condition is TRUE.
increment/decrement – increase or decrease your counter , this parameter should be before end of loop.