0
why Hello will be printed once in this case.
$i = 1; do { echo "Hello"; } while($i < 0);
2 Antworten
+ 1
Because the do-while executes the statements before testing the condition, if the condition is true it will continue
0
Because do while loop always executes at least one time even if the condition is not true. It could be useful for some cases