← All docs

fgetcsv() — internals

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

fgetcsv() — internals

Where it lives

Lowering notes

  • Lowers fgetcsv(stream, separator?, enclosure?) through the CSV row runtime helper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_fgetcsv
  • __rt_fputcsv

Signature summary

function fgetcsv(resource $stream, int $length = null, string $separator = ','): array

What the type checker enforces

  • Arity: takes 1–3 arguments (2 optional).

Eval interpreter (magician)

Cross-references