public function fputcsv(array $fields, string $delimiter = ',', string $enclosure = '"', string $escape = '\\')
    {
        $controls = $this->filterControl($delimiter, $enclosure, $escape, __METHOD__);

        return fputcsv($this->stream, $fields, ...$controls);
    }
public function fputcsv(array $fields, string $delimiter = ',', string $enclosure = '"', string $escape = '\\')
    {
        $controls = $this->filterControl($delimiter, $enclosure, $escape, __METHOD__);

        return fputcsv($this->stream, $fields, ...$controls);
    }
public function fputcsv ( array $ fields , string $ delimiter = ',' , string $ enclosure = '"' , string $ escape = '\\' ) { $ controls = $ this -> filterControl ( $ delimiter , $ enclosure , $ escape , __METHOD__ ) ; return fputcsv ( $ this -> stream , $ fields , ... $ controls ) ; }
Write a field array as a CSV line.

@see http://php.net/manual/en/splfileobject.fputcsv.php

@return int|bool
Write a field array as a CSV line .