0
I have an array:
$enderecos = array( 'Endereço', 'Endereco', 'Endereço ' );
Use the function fgetcsv
to read my CSV, I check the csv header by comparing whether the header is included in the array.
if(in_array($colunas_csv, $enderecos))
{
$endereco_posicao = $key;
}
Where $colunas_csv
is the header return, what happens is that if the returned header is Endereco
verification occurs, but, if it is Endereço
does not occur due to Ç
.
But the
$colunas_csv
is in UTF-8? If not, what encoding is used?– Inkeliz