I need to read an array and get the name of its column and its value.
Array:
Array
(
[0] => Array
(
[Conta] => FRANCIELE OLIVEIRA
[CPF] => ''
[Telefone Res.] => (00) 0000-0000
)
[1] => Array
(
[Conta] => BEATRIX BEHN
[CPF] => ''
[Telefone Res.] => (00) 0000-0000
)
)
foreach ($Array as $row)
{
echo $row['Conta'];
echo $row['CPF'].'<BR><BR>';
}
But with this foreach only the values are printed, I also need the name of the column, for example: Conta = BEATRIX