Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php read csv file into array

$file = fopen('myCSVFile.csv', 'r');
while (($line = fgetcsv($file)) !== FALSE) {
  //$line is an array of the csv elements
  print_r($line);
}
fclose($file);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #read #csv #file #array
ADD COMMENT
Topic
Name
8+9 =