Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

CSV File Read using PHP fgetcsv()

<?php
$CSVfp = fopen("fruits.csv", "r");
if ($CSVfp !== FALSE) {
    while (! feof($CSVfp)) {
        $data = fgetcsv($CSVfp, 1000, ",");
        print_r($data);
    }
}
fclose($CSVfp);
?>
Source by phppot.com #
 
PREVIOUS NEXT
Tagged: #CSV #File #Read #PHP
ADD COMMENT
Topic
Name
4+5 =