We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 00a93dc + b6a22cc commit cefa36aCopy full SHA for cefa36a
application/libraries/Format.php
@@ -197,7 +197,7 @@ public function to_csv()
197
$data = array($data);
198
}
199
200
- $output = implode(',', $headings).PHP_EOL;
+ $output = '"'.implode('","', $headings).'"'.PHP_EOL;
201
foreach ($data as &$row)
202
{
203
$row = str_replace('"', '""', $row); // Escape dbl quotes per RFC 4180
0 commit comments