- 3

for(;;){}

18th Sep 2017, 7:26 PM
Srikanth iyer
Srikanth iyer - avatar
13 Answers
+ 4
First, you are initializing $cnt and loop is from 0 to $cnt so its meaning loop is repeating $cnt times. Second is bad because hasnt last ; for separate action i++
18th Sep 2017, 8:06 PM
Daniel
Daniel - avatar
+ 3
what do you need?
18th Sep 2017, 7:34 PM
Daniel
Daniel - avatar
+ 3
is it a loop
18th Sep 2017, 7:48 PM
Daniel
Daniel - avatar
+ 3
do you want to know exactly that code?
18th Sep 2017, 7:49 PM
Daniel
Daniel - avatar
+ 3
you can but it is a infinite loop
18th Sep 2017, 7:50 PM
Daniel
Daniel - avatar
+ 3
again, what do you need? or what do you want to do?
18th Sep 2017, 8:07 PM
Daniel
Daniel - avatar
+ 3
for(Initialize variable; Condition; Execute command){} example: for($i = 0; $i < 4; $i++){ // Code } You can also leave a few things out like: for(;true;){ // Loop until break //A WHILE loop will make more sense }
18th Sep 2017, 8:39 PM
Limitless
Limitless - avatar
+ 1
I just need the meaning of it in php
18th Sep 2017, 7:41 PM
Srikanth iyer
Srikanth iyer - avatar
+ 1
it can be executed?
18th Sep 2017, 7:49 PM
Srikanth iyer
Srikanth iyer - avatar
+ 1
for($cnt=count($users),$i=0;$i<$cnt;++$i){ } could you elaborate this in php and what is the meaning of this is this a executable loop.
18th Sep 2017, 7:54 PM
Srikanth iyer
Srikanth iyer - avatar
+ 1
for($i=0;$i<count($cnt)++$i){ }could you elaborate this in PHP and what is the meaning of this.. is this a executable loop?
18th Sep 2017, 7:57 PM
Srikanth iyer
Srikanth iyer - avatar
+ 1
nothing thank you
18th Sep 2017, 8:20 PM
Srikanth iyer
Srikanth iyer - avatar
+ 1
This counts as spam dude
18th Sep 2017, 10:14 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar