$this->fputCsvEol($fp, $fields, "\r\n");
public function fputCsvEol($fp, $array, $eol) { fputcsv($fp, $array); if("\n" != $eol && 0 === fseek($fp, -1, SEEK_CUR)) { fwrite($fp, $eol); } }
$this->fputCsvEol($fp, $fields, "\r\n");
public function fputCsvEol($fp, $array, $eol) { fputcsv($fp, $array); if("\n" != $eol && 0 === fseek($fp, -1, SEEK_CUR)) { fwrite($fp, $eol); } }
For any questions or project ideas please contact me at the following.