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
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/filesystem/fputcsv.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how fputcsv is implemented in the compiler, see the internals page.