I have these two arrays. I want array b to be merged into array 1 and apples show under product[0], oranges in product[1] and lemon in product[2]:
$a = Array
(
[0] => Array
(
[Customer] => Array
(
[id] => 46714
)
[Product] => Array
(
[id] => 148
)
)
[1] => Array
(
[Customer] => Array
(
[id] => 46714
)
[Product] => Array
(
[id] => 148
)
)
[2] => Array
(
[Customer] => Array
(
[id] => 46714
)
[Product] => Array
(
[id] => 148
)
)
)
$b = array(
[0] => apples
[1] => Orange
[2] => Lemon
)
Something like?
You need to specify your desired result for a more accurate guess.