本帖最后由 qq914260102 于 2013-11-14 10:08:13 编辑
比如我一个记录集$row 里面有一百条记录。
for($k=0;$k7bae5847f299ebfadfe6f764c25c2e79 a1 [1] => b1 [2] => c1 )
Array ( [0] => asdf2 [1] => b2df [2] => b2sd )
Array ( [0] => a3 [1] => b3 [2] => b6 )
Array ( [0] => a4 [1] => b4 [2] => sdfs )
我想要这样子的结果。,
是$test=Array ( [0] => a1 [1] => b1 [2] => c1 ) ,Array ( [0] => asdf2 [1] => b2df [2] => b2sd ) ,Array ( [0] => a3 [1] => b3 [2] => b6 ),Array ( [0] => a4 [1] => b4 [2] => sdfs )
你说的是要二维数组。
foreach($row as $val){ print_r($val);}
你说的是要二维数组。
foreach($row as $val){ print_r($val);}
求具体代码。