Combining two arrays in to one in cake php
This is the array i have.
Array
(
[0] => Array
(
[FoodItem] => Array
(
[id] => B102
[food_item_title] => Prown cocktail
[active] => 1
)
[MenuFoodItem] => Array
(
[menu_id] => 2
)
)
)
I want to combine FoodItem and MenuFoodItem array into one as following
using native php or cake php
Array
(
[0] => Array
(
[FoodItem] => Array
(
[id] => B102
[food_item_title] => Prown cocktail
[active] => 1
[menu_id] => 2
)
)
)
No comments:
Post a Comment