Ok, so someone is probably going to laugh when they read this, but I cannot get it to work. I have two arrays.
Array 1 looks like:
Array
(
[525133-004-TURQ/WHT-9] => Array
(
[classId] => 48
[family] => Mens Shoes
[onOrder] => 3.000
[cost] => 45.000
[sell] => 95.000
[desc] => PAUL RODRIGUEZ 6, TURQ/WHT, 9
[invStore] => 0.000
[code] => 525133-004-TURQ/WHT-9
)
)
Array 2 looks like:
Array
(
[525133-004-TURQ/WHT-9] => Array
(
[inv] => 0.000
)
)
The result needed is:
Array
(
[525133-004-TURQ/WHT-9] => Array
(
[classId] => 48
[family] => Mens Shoes
[onOrder] => 3.000
[cost] => 45.000
[sell] => 95.000
[desc] => PAUL RODRIGUEZ 6, TURQ/WHT, 9
[invStore] => 0.000
[code] => 525133-004-TURQ/WHT-9
[inv] => 0.000
)
)
I tried merge and it is not working. Please help!
Use
array_merge_recursive:See it here in action: http://viper-7.com/jq8CgM