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

NameTypeDefault
$stream mixed required
$fields array required
$separator string ','
$enclosure string '"'
$escape string '\\'
$eol string ' '

Returns

int|false

Source

src/functions.php:200-203