ok I have 2 array values… That’s coming from 2 different methods in my class file.
This is coming from my Keyword Method
Array
(
[4193] => Array
(
[Tagged] => Array
(
[0] => Keratin Treatment
[1] => Couples Massage
)
)
[3574] => Array
(
[Tagged] => Array
(
[0] => Deep Massage
)
)
)
this is coming from another method
Array
(
[4193] => Array
(
[salonID] => 4193
[miles] => 0.283011807234213
[featured] => 3
)
[3574] => Array
(
[salonID] => 3574
[miles] => 0.718207507865745
[featured] => 3
)
)
I want to merge the two to look like this
Array
(
[4193] => Array
(
[salonID] => 4193
[miles] => 0.283011807234213
[featured] => 3
[Tagged] => Array
(
[0] => Keratin Treatment
[1] => Couples Massage
)
)
[3574] => Array
(
[salonID] => 3574
[miles] => 0.718207507865745
[featured] => 3
[Tagged] => Array
(
[0] => Deep Massage
)
)
)
I tried the following techniques
$Results = $arr_value_a+$arr_value_b it resets the keys…
and other array merging functions provided by php resets the keys or just ends up deleting half the arrays…