fill in the blanks to break out of the loop after the number 5 is printed to the screen. for ($i=0;$i<=50;$i++) { echo $i; if($i | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 6

fill in the blanks to break out of the loop after the number 5 is printed to the screen. for ($i=0;$i<=50;$i++) { echo $i; if($i

28th Jun 2018, 8:25 PM
Erick Peter Athuman
4 Answers
+ 3
for ($i=0;$i<=50;$i++) { echo $i; if ($i==) { ; } } Answer : 5, Break
29th Feb 2020, 12:26 PM
Sadman Fahim
Sadman Fahim - avatar
+ 1
if ($i == 5) break; }
29th Jun 2018, 5:02 AM
ReimarPB
ReimarPB - avatar
+ 1
5, Break
17th May 2022, 6:24 AM
Megha Raj kandel
- 1
for ($i=0;$i<=50;$i++) { echo $i; if ($i==5) { break; } }
1st Jun 2019, 8:01 AM
Jeewanthi Abeyrathna
Jeewanthi Abeyrathna - avatar