数组$arr
array (size=3) 0 => array (size=2) 'channel' => int 0 'num' => int 170 13 => array (size=2) 'channel' => int 1 'num' => int 6 14 => array (size=2) 'channel' => int 2 'num' => int 2
使用foreache函数
foreach($arr as $value){ $new[] = $value; }
变化后的数组$new
array (size=3) 0 => array (size=2) 'channel' => int 0 'num' => int 170 1 => array (size=2) 'channel' => int 1 'num' => int 6 2 => array (size=2) 'channel' => int 2 'num' => int 2