fgetcsv

PHP 4, PHP 5, PHP 7, PHP 8
fgetcsv - Gets line from file pointer and parse for CSV fields
Manual
Code Examples

Example #1 Read and print the entire contents of a CSV file

PHP Version: