diff --git a/xlsxwriter.class.php b/xlsxwriter.class.php index 350acd2f6..44c07d18c 100644 --- a/xlsxwriter.class.php +++ b/xlsxwriter.class.php @@ -216,7 +216,7 @@ public function writeCSV(array $data, array $header_types=array() ) $output .= implode("\n", array_map(function($array) { return implode(';', $array); }, $data)); - return print_r($output); + return $output; } public function writeSheet(array $data, $sheet_name='', array $header_types=array() )