PHP begainers Problems | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

PHP begainers Problems

plz, help me to understand this code am new in PHP and sorry for bad English. <?php $x=0; while ( $x<= 10) { $x++;echo $x; } ?>

11th Apr 2019, 3:13 PM
Ekram Mallick
Ekram Mallick - avatar
1 Answer
+ 4
This is a do-while loop. This kind of loops iterated until a special case is evaluated to false (the statement inside braces). So finally the output is numbers from 1 to 11 https://www.sololearn.com/learn/PHP/1825/
11th Apr 2019, 3:28 PM
Seniru
Seniru - avatar