phasync\fputcsv()
function
Documentation
Coroutine aware format line as CSV and write to file pointer
Signature
function fputcsv($stream, array $fields, string $separator = ',', string $enclosure = '"', string $escape = '\\', string $eol = '
'): int|false
Parameters
| Name | Type | Default |
|---|---|---|
$stream
|
mixed | required |
$fields
|
array |
required |
$separator
|
string |
','
|
$enclosure
|
string |
'"'
|
$escape
|
string |
'\\'
|
$eol
|
string |
'
'
|
Returns
int|false