for loop 0<10, i 1=1, echo $num[1], isn’t the result 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
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