How do I create a new multidimensional array by merging two arrays and removing any duplicate rows.
First array:
[
0 => ["id" => "0001", "name" => "sample name 1"],
1 => ["id" => "0002", "name" => "sample name 2"],
3 => ["id" => "0003", "name" => "sample name 3"]
]
Second Array:
[
0 => ["id" => "0002", "name" => "sample name 2"],
1 => ["id" => "11323", "name" => "blah blah"]
]
The desired result is:
[
["id" => "0001", "name" => "sample name 1"],
["id" => "0002", "name" => "sample name 2"],
["id" => "0003", "name" => "sample name 3"]
["id" => "11323", "name" => "blah blah"]
]