Using fgetscsv function
Reading the data saved in CSV file format
fgetcsv -- Gets line from file pointer and parse for CSV fields
Fgetcsv() example - Read and print entire contents of a CSV file
The field delimiter is assumed to be a comma, unless you specify another delimiter with the optional third parameter.
PHP Code