I know there are a lot of smart people, so prove me right!
I want to combine arrays where similar named keys merge together to form a single array. See example:
[Bob] => Array
(
[BobsDetails] => Array
(
[Title] => Mr
)
)
[Bob] => Array
(
[BobsDetails] => Array
(
[Surname] => Smith
)
)
How do I end up with ONE array that looks like:
[Bob] => Array
(
[BobsDetails] => Array
(
[Title] => Mr
[Surname] => Smith
)
)
Thanks in advance guys
PS I dont think it is as simple as array_merge... ;(
EDIT Made it easier to read
EDIT Sorted. Thanks for the help. array_merge_recursive worked