I have 2 arrays like this:
Array One:
[
[
"id" => 1234
"name" => "John"
],
[
"id" => 1235
"name" => "doe"
]
]
Array Two:
[
[
"age" => 12
],
[
"age" => 13
]
]
I have tried it using and combine array_reduce
, array_map
or array_merge_recursive
, but it still doesn't match the results.
How can I make the two arrays like below?
[
[
"id" => 1234
"name" => "John"
"age" => 12
],
[
"id" => 1235
"name" => "doe"
"age" => 13
]
]
Please help me. thank you