Assume I have multiple nested arrays (arrays of rows-arrays):
[
['name' => 'John', 'age' => 20],
['name' => 'Jack', 'age' => 30],
],
[
['salary' => 100],
['salary' => 200],
],
How do I merge the columns? Like this:
[
['name' => 'John', 'age' => 20, 'salary' => 100],
['name' => 'Jack', 'age' => 30, 'salary' => 200],
]
Upd. My research effort was: I've looked it in the web, in official docs and on SO - and haven't found an answer.