module training - export csv with ";" instead of "," as column delimiter
This commit is contained in:
parent
e287172313
commit
9cb93b6ccf
@ -88,15 +88,15 @@ class CSVWriter
|
||||
ob_start();
|
||||
|
||||
if (is_array($this->header)) {
|
||||
fwrite($output, implode(',', $this->header).PHP_EOL);
|
||||
fwrite($output, implode(';', $this->header).PHP_EOL);
|
||||
}
|
||||
|
||||
foreach($this->lines as $line) {
|
||||
fwrite($output, implode(',', $line).PHP_EOL);
|
||||
fwrite($output, implode(';', $line).PHP_EOL);
|
||||
}
|
||||
|
||||
if (is_array($this->footer)) {
|
||||
fwrite($output, implode(',', $this->footer).PHP_EOL);
|
||||
fwrite($output, implode(';', $this->footer).PHP_EOL);
|
||||
}
|
||||
|
||||
$this->buffer = ob_get_clean();
|
||||
|
Loading…
Reference in New Issue
Block a user