From 8fd606ae4fb3f8969b4d382e7129ce3c2b496f79 Mon Sep 17 00:00:00 2001 From: Adrien Loison Date: Fri, 23 Oct 2015 10:52:12 -0700 Subject: [PATCH] Highlight XLSX over CSV in documentation --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f413d9b..88500dd 100644 --- a/README.md +++ b/README.md @@ -62,8 +62,8 @@ Regardless of the file type, the interface to read a file is always the same: use Box\Spout\Reader\ReaderFactory; use Box\Spout\Common\Type; -$reader = ReaderFactory::create(Type::CSV); // for CSV files -//$reader = ReaderFactory::create(Type::XLSX); // for XLSX files +$reader = ReaderFactory::create(Type::XLSX); // for XLSX files +//$reader = ReaderFactory::create(Type::CSV); // for CSV files //$reader = ReaderFactory::create(Type::ODS); // for ODS files $reader->open($filePath); @@ -87,8 +87,8 @@ As with the reader, there is one common interface to write data to a file: use Box\Spout\Writer\WriterFactory; use Box\Spout\Common\Type; -$writer = WriterFactory::create(Type::CSV); // for CSV files -//$writer = WriterFactory::create(Type::XLSX); // for XLSX files +$writer = WriterFactory::create(Type::XLSX); // for XLSX files +//$writer = WriterFactory::create(Type::CSV); // for CSV files //$writer = WriterFactory::create(Type::ODS); // for ODS files $writer->openToFile($filePath); // write data to a file or to a PHP stream