PHP » GoLang |
login |
register |
about
|
GoLang SplFileObject::fputcsv
request it (314)
GoLang replacement for PHP's SplFileObject::fputcsv
[edit | history]
SplFileObject::fputcsv(PHP 5 >= 5.4.0, PHP 7) SplFileObject::fputcsv — Write 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
|
more
Recently updated
more
Most requested
more
Last requests
|