I have two arrays. The first array has a list of multidimensional arrays. The second array is similar, it also has a list of multidimensional arrays. The first array key has a list of description and the second array key has a list of amount. I need to combine both arrays and get the result shown in the below code. Somebody, please help me. See the below code for reference.
- Array - 1
Array
(
[0] => Array
(
[description] => Amul
)
[1] => Array
(
[description] => Kesar
)
[2] => Array
(
[description] => Flavour
)
)
- Array - 2
Array
(
[0] => Array
(
[amount] => 100
)
[1] => Array
(
[amount] => 200
)
[2] => Array
(
[amount] => 300
)
)
- My result should be like the below.
Array
(
[0] => Array
(
[description] => Amul
[amount] => 100
)
[1] => Array
(
[description] => Kesar
[amount] => 200
)
[2] => Array
(
[description] => Flavour
[amount] => 3
)
)