fgetcsv

fgetcsv

(PHP 4, PHP 5, PHP 7)

fgetcsvGets line from file pointer and parse for CSV fields

Description

array fgetcsv ( resource $handle [, int $length = 0 [, string $delimiter = "," [, string $enclosure = '"' [, string $escape = "\" ]]]] )

Similar to fgets() except that fgetcsv() parses the line it reads for fields in CSV format and returns an array containing the fields read.