PHP begainers Problems | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 ответ
+ 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