- 3
for(;;){}
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++
+ 3
what do you need?
+ 3
is it a loop
+ 3
do you want to know exactly that code?
+ 3
you can but it is a infinite loop
+ 3
again, what do you need? or what do you want to do?
+ 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
}
+ 1
I just need the meaning of it in php
+ 1
it can be executed?
+ 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.
+ 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?
+ 1
nothing thank you
+ 1
This counts as spam dude