Skip to content
Corex

CsvWriter

Corex\Config\Data\CsvWriter · class · Config layer

Renders a data source’s columns + rows as an RFC-4180 CSV string (spec 045, US2). Pure: a header row from the column labels, one row per record, every field escaped (quotes doubled; fields containing a comma/quote/newline quoted). Only the declared columns are emitted, so no internal/secret field can leak (SC-005).

write(array $columns, array $rows): string

Section titled “write(array $columns, array $rows): string”