Instruction: Which of the following is the correct syntax for a while statement? Then, provide your stand of choice. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Instruction: Which of the following is the correct syntax for a while statement? Then, provide your stand of choice.

a. $i = 0: while ($1 <= 5, ++$i){ echo "i": } b. $i = 0; while ($i <= 5) echo "$i": ++$i; } c. $i = 0; while ($i <= 5) echo "$i": ++$i: } d. $i = 0; while ($i <= 5; echo "$i"); ++$i; }

9th Apr 2021, 12:08 PM
Drew Marie Magan
Drew Marie Magan - avatar
1 Answer
0
Start learning PHP and you'll find it in Control Structures module -> The while Loop https://www.sololearn.com/learn/PHP/1825/
9th Apr 2021, 1:21 PM
Ipang