php操作数组
1 2 3 4 | <br />
for ( $i =1; $i <=5; $i ++){<br />
array ( array ( $i ));<br />
}<br />
|
登入後複製
for循环里面的是一个二维数组,我想把for循环里面的二维数组进行合并,打印出来的结果是:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <br />
<br />
array (<br />
<br />
[0] => Array<br />
(<br />
[0] => 1<br />
)<br />
[1] => Array<br />
(<br />
[0] => 2<br />
)<br />
[2] => Array<br />
(<br />
[0] => 3<br />
)<br />
[3] => Array<br />
(<br />
[0] => 4<br />
)<br />
<br />
[4] => Array<br />
(<br />
[0] => 5<br />
)<br />
)<br />
|
登入後複製