PHP Manual

PHP function fputcsv()

2019-09-11T08:04:04.000Z

Obsah článku

Availability in versions: PHP 5.1.0

Format line as CSV and write to file pointer

Parameters

Parameter Data type Default value Note
$handle resource not
$fields array not An array of values.
$delimiter string ",", The optional delimiter parameter sets the field delimiter (one character only).
$enclosure string '"', The optional enclosure parameter sets the field enclosure (one character only).
$escape_char string "\"

Return values

int

|bool the length of the written string or false on failure.

Other resources

Official fputcsv documentation

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
308.

V jiných jazycích

Status:
All systems normal.
2025