I have the below snippet of code and I can't figure out why these two arrays won't merge - likely due to not understanding 100% how array_merge works. I'm expecting to see the duplicate, and merge the two into a single key. Running array_unique
results in errors. Any ideas, or possibly an alternate solution to merge these two?
$a['12345']['label'] = '12345';
$a['12345']['type'] = 'Newspaper';
$b['12345']['label'] = '12345';
$b['12345']['type'] = 'Newspaper';
$result = array_merge($a, $b);
echo "<pre>";
print_r($result);