src/Google/AdsApi/AdManager/Util/v201805/CsvFiles.php
public static function writeCsvToStream(array $csvData, $handle)
    {
        if (is_null($handle)) {
            throw new InvalidArgumentException('File handle is null.');
        }

        foreach ($csvData as $line) {
            fputcsv($handle, $line);
        }
    }
public static function writeCsvToStream(array $csvData, $handle)
    {
        if (is_null($handle)) {
            throw new InvalidArgumentException('File handle is null.');
        }

        foreach ($csvData as $line) {
            fputcsv($handle, $line);
        }
    }
public static function writeCsvToStream ( array $ csvData , $ handle ) { if ( is_null ( $ handle ) ) { throw new InvalidArgumentException ( 'File handle is null.' ) ; } foreach ( $ csvData as $ line ) { fputcsv ( $ handle , $ line ) ; } }
Writes the CSV data to a stream handle.

@param array $csvData the CSV data including the header
@param resource $handle the stream handle to write the CSV data to
@throws InvalidArgumentException if `$csvData` is null or
`$fileName` is null
Writes the CSV data to a stream handle .