怎么样可以将这个数组Array ( [0] => 5,6,7,8,12 [1] => 5,9,10,13 [2] => 7,9,15,10 )
合成这样Array ( [0] =>5,6,7,8,12,5,9,10,13, 7,9,15,10)
把不同键值合到一个键值下面
一维数组?
$ar = Array ( 0 => '5,6,7,8,12', 1 => '5,9,10,13', 2 => '7,9,15,10' );$arr[]= implode(',', $ar);print_r($arr);
一维数组?
$ar = Array ( 0 => '5,6,7,8,12', 1 => '5,9,10,13', 2 => '7,9,15,10' );$arr[]= implode(',', $ar);print_r($arr);