|
fputcsvFormat line as CSV and write to file pointer Description
int fputcsv
( resource
$handle
, array $fields
[, string $delimiter = ','
[, string $enclosure = '"'
]] )
fputcsv formats a line (passed as a
Parameters
Return Values
Returns the length of the written string or Examples
Example #1 fputcsv example
<?php The above example will write the following to file.csv: aaa,bbb,ccc,dddd 123,456,789 """aaa""","""bbb""" Notes
See Also
|