|
fputcsvFormat line as CSV and write to file pointer Description
int fputcsv
( resource
$handle
, array $fields
[, string $delimiter = ","
[, string $enclosure = '"'
[, string $escape_char = "\"
]]] )
fputcsv formats a line (passed as a
Parameters
Return Values
Returns the length of the written string or Changelog
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
|