我希望有人能幫助我一個小問題!PHP與循環內循環
我有一個PHP循環,循環3次。
每次循環我想要一個內循環每個循環輸出2個增量值。
例如:
Loops the first time: Inner loop should output value 1, value 2
Loops the second time: Inner loop should output value 3, value 4
Loops the third time: Inner loop should output value 5, value 6
什麼想法?
所以你寫了兩個循環..你的問題是什麼? –