Posts

Showing posts with the label associative-array

PHP join 2 arrays of same key value

PHP join 2 arrays of same key value I'm wondering how to solved this. I have 3(three) arrays that contained nested values in the "data" key like this: array:3 [ 0 => array:3 [ "status" => "Terkirim" "warna" => "lightgreen" "data" => array:12 [ 0 => 0 1 => 0 2 => 0 3 => 0 4 => 0 5 => 0 6 => 3 7 => 0 8 => 0 9 => 0 10 => 0 11 => 0 ] ] 1 => array:3 [ "status" => "Selesai" "warna" => "lightblue" "data" => array:12 [ 0 => 0 1 => 0 2 => 0 3 => 0 4 => 0 5 => 0 6 => 3 7 => 0 8 => 0 9 => 0 10 => 0 11 => 0 ] ] 2 => array:3 [ "status" => "Selesai" "warna" => ...