|
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. Parameters
Return ValuesReturns an indexed array containing the fields read.
fgetcsv returns Changelog
Examples
Example #1 Read and print the entire contents of a CSV file
<?php Notes
See Also
|