public function putLine($data)
    {
        $ok = fputcsv($this->handle, $data, $this->delimiter, $this->enclosure, $this->escape_char);
        if ($ok === false) {
            throw new Exception(['Can not write to CSV file.']);
        }
    }
public function putLine($data)
    {
        $ok = fputcsv($this->handle, $data, $this->delimiter, $this->enclosure, $this->escape_char);
        if ($ok === false) {
            throw new Exception(['Can not write to CSV file.']);
        }
    }
public function putLine ( $ data ) { $ ok = fputcsv ( $ this -> handle , $ data , $ this -> delimiter , $ this -> enclosure , $ this -> escape_char ) ; if ( $ ok === false ) { throw new Exception ( [ 'Can not write to CSV file.' ] ) ; } }
Writes array as one record to CSV file.

@param array
Writes array as one record to CSV file .