fputcsv()
function fputcsv(resource $stream, array $fields, string $separator = ',', string $enclosure = '"'): int
Format line as CSV and write to file pointer.
Parameters:
$stream(resource)$fields(array)$separator(string), default',', optional$enclosure(string), default'"', optional
Returns: int
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how fputcsv is implemented in the compiler, see the internals page.