|
SplFileObject::fputcsvWrite a field array as a CSV line Description
public int SplFileObject::fputcsv
( array
$fields
[, string $delimiter = ","
[, string $enclosure = '"'
[, string $escape = "\"
]]] )
Writes the Parameters
Return Values
Returns the length of the written string or
Returns Errors/Exceptions
An Changelog
Examples
Example #1 SplFileObject::fputcsv example
<?php The above example will write the following to file.csv: aaa,bbb,ccc,dddd 123,456,789 """aaa""","""bbb""" See Also
|