PHP » GoLang |
login |
register |
about
|
fgetcsv(PHP 4, PHP 5, PHP 7) fgetcsv — Gets 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
|
more
Recently updated
more
Most requested
more
Last requests
|