Tags
Asked 2 years ago
13 Jul 2021
Views 187
Rosemarie

Rosemarie posted

How do you do a while loop in PHP ?

How do you do a while loop in PHP ?
jignesh

jignesh
answered Oct 8 '21 00:00

syntax of the while loop is :


while(condition check){
 //do something
}


work like this :


$d=0;
while($d<10){
echo $d;
}

it will print 1 2 3 .. 10

Post Answer