SyntaxFix
Write A Post
Hire A Developer
Questions
You need to use array_merge_recursive instead of array_merge. Of course there can only be one key equal to 'c' in the array, but the associated value will be an array containing both 3 and 4.
array_merge_recursive
array_merge
'c'
3
4