I have the following array:
Array
(
[CPF_CNPJ] => Array
(
)
[TIPO] => Array
(
)
[NOME] => Array
(
)
)
I know that key(array)
returns the NAME of the current key in a loop, but would like to get the index of the key and not the name.
Example
[CPF_CNPJ] = 0
[TIPO] = 1
[NOME] = 2
Will I have to foreach
do this?
I did not see the PHP manual as a function for this.