mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
@@ -418,7 +418,7 @@ class parseCSV {
|
||||
$file = &$this->file;
|
||||
}
|
||||
|
||||
$mode = $append ? 'at' : 'wt';
|
||||
$mode = $append ? 'ab' : 'wb';
|
||||
$is_php = preg_match('/\.php$/i', $file) ? true : false;
|
||||
|
||||
return $this->_wfile($file, $this->unparse($data, $fields, $append, $is_php), $mode);
|
||||
|
||||
Reference in New Issue
Block a user