<?php $CSVfp = fopen("fruits.csv", "r"); if ($CSVfp !== FALSE) { while (! feof($CSVfp)) { $data = fgetcsv($CSVfp, 1000, ","); print_r($data); } } fclose($CSVfp); ?>