2
I am a beginner in PHP and I am currently studying the arrays, and I have a silly question.
When I print my arrays, it comes this way
Array (
[0] => Array ( [0] => 10 )
[1] => Array ( [0] => 20 )
[2] => Array ( [0] => 30 )
[3] => Array ( [0] => 40 )
[4] => Array ( [0] => 50 )
)
My interest is that only the numbers are displayed.
10, 20, 30, 40 50
Php code
while (($linha = fgetcsv($file)) !== FALSE)
{
$carros[] = $linha;
//print_r($linha);
}
fclose($file);
print_r($carros);
All help will be welcome
I changed my question, because the sites did not help me.
– Pesquisador
Where does this array come from? Your question is very confusing.
– user28595