← All docs

fputcsv() — internals

Compiler internals for fputcsv(): lowering path, type checks, and runtime helpers.

fputcsv() — internals

Where it lives

Lowering notes

  • Lowers fputcsv(stream, fields, separator?, enclosure?) for string arrays.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_fputcsv

Signature summary

function fputcsv(resource $stream, array $fields, string $separator = ',', string $enclosure = '"'): int

What the type checker enforces

  • Arity: takes 2–4 arguments (2 optional).

Eval interpreter (magician)

Cross-references