$array1 = [ "month" => "Jan", "count" => "20" , "month" => "feb", "count" => "2" ];
$array2 = [ "month" => "Jan", "count" => "50" , "month" => "feb", "count" => "27" ];
預期陣列後合併上述2個陣列陣列合併NO(+)UNION或合併()
$fianlarray = ["month" => "jan" , "count"=>"20" , "count" => "50" ,
"month" => "feb" , "count" => "2", "count" => "27" ];
我試過array_merge和聯合,但沒有結果。在此先感謝
葉氏我試過array_merge_recursive(),但是這不是我想要的伴侶。 :) –