Maison >développement back-end >tutoriel php >php操作数组解决思路
php操作数组
<br />for($i=1;$i<=5;$i++){<br /> array(array($i));<br />}<br />
<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 />