越努力越幸运!!!
In the for loop, does $i++ have any effect? -PHP Chinese website Q&A-In the for loop, does $i++ have any effect? -PHP Chinese website Q&A
Please watch and learn.
It means that the variable $i adds 1 and keeps adding, unless you set a precondition, such as $i=0;$i<100;$i++
这是加一的意思,相当于$i=$i+1
$i=1;
$i++;
执行了这两条语句之后,$i的值就变成2了
In the for loop, does $i++ have any effect? -PHP Chinese website Q&A-In the for loop, does $i++ have any effect? -PHP Chinese website Q&A
Please watch and learn.
It means that the variable $i adds 1 and keeps adding, unless you set a precondition, such as $i=0;$i<100;$i++
这是加一的意思,相当于$i=$i+1
$i=1;
$i++;
执行了这两条语句之后,$i的值就变成2了