Gen. partnerAlgotech

PHP function fputcsv()

Format line as CSV and write to file pointer

|
September 11, 2019

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

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.