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 68e57d6 + 2100efb commit 5705bdfCopy full SHA for 5705bdf
application/libraries/Format.php
@@ -209,13 +209,8 @@ public function to_csv()
209
$output = '"'.implode('","', $headings).'"'.PHP_EOL;
210
foreach ($data as &$row)
211
{
212
- if (is_array($row)) {
213
- throw new Exception('Format class does not support multi-dimensional arrays');
214
- } else {
215
- $row = str_replace('"', '""', $row); // Escape dbl quotes per RFC 4180
216
- $output .= '"'.implode('","', $row).'"'.PHP_EOL;
217
- }
218
-
+ $row = str_replace('"', '""', $row); // Escape dbl quotes per RFC 4180
+ $output .= '"'.implode('","', $row).'"'.PHP_EOL;
219
}
220
221
return $output;
0 commit comments