I have a code where I read the EXCEL .CSV file and display the data on the screen, but I need to save those values in an array.
My code:
<?php
$file = fopen(numeros.csv', 'r');
while (($line = fgetcsv($file)) !== FALSE)
{
//$line is an array of the csv elements
print_r($line);
}
fclose($file);
?>
$arrayItem= array('8532300022', '8501022934', '8501022969', '8501022926', '8501022985');
It would have to stay something like:
$arrayItem= array('$line');
Valew