<?php $file = fopen("test.csv","r"); echo "<pre>"; while(! feof($file)) print_r(fgetcsv($file)); echo "<pre>"; fclose($file); ?>
Array ( [0] => 1 [1] => Dennis Ritchie [2] => Father of C ) Array ( [0] => 2 [1] => Steve Jobs [2] => Founder of Apple ) Array ( [0] => 2 [1] => Bill Gates [2] => Founder of Microsoft )
Here is the CSV file
1,'Dennis Ritchie','Father of C'
2,'Steve Jobs','Founder of Apple'
2,'Bill Gates','Founder of Microsoft'
Comments :