I have these two arrays in php:
Array
(
[0] => nome
[1] => cargo
[2] => email
)
Array
(
[0] => Array
(
[0] => nome1
[1] => cargo1
[2] => [email protected]
)
[1] => Array
(
[0] => nome2
[1] => cargo2
[2] => [email protected]
)
)
I wanted to combine the two so that the result would be as follows:
Array
(
[0] => Array
(
[nome] => nome1
[cargo] => cargo1
[email] => [email protected]
)
[1] => Array
(
[nome] => nome2
[cargo] => cargo2
[email] => [email protected]
)
)
Any ideas how I can do this?