I'm reading an Excel worksheet that returns a result like the one below, the first array being the name of the columns
Array
(
[0] => Array
(
[0] => nome
[1] => sobre_nome
)
[1] => Array
(
[0] => nome1
[1] => snome1
)
[2] => Array
(
[0] => nome2
[1] => snome2
)
[3] => Array
(
[0] => nome3
[1] => snome3
)
)
Is there any practical way to use the first array element, which is always the same, as the key to the other arrays? getting like this:
Array
(
[0] => Array
(
[nome] => nome1
[sobre_nome] => snome1
)
[1] => Array
(
[nome] => nome2
[sobre_nome] => snome2
)
[2] => Array
(
[nome] => nome3
[sobre_nome] => snome3
)
)