for循环中,$i++ 这个有什么作用么?
素颜
素颜 2016-12-17 09:43:01
0
3
1629
素颜
素颜

越努力越幸运!!!

reply all(3)
数据分析师

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.

本Q已中毒

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了

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!