Why does the first one output 1?
相知相惜
相知相惜 2018-09-06 21:25:09
0
2
1452

for loop 0<10, i 1=1, echo $num[1], isn’t the result 2?

相知相惜
相知相惜

reply all (2)
城南花已开

The for loop first determines when $i=0, $int<10, then executes the statement in the for loop, which is echo $num[0], and then executes i++, and then determines when i=1, the poster will for The sequence of the cycle process is wrong

    江山

    Start from the 0th one, 0=1

      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!