summaryrefslogtreecommitdiffstats
path: root/examples/filtering.php
diff options
context:
space:
mode:
authorIgnace Nyamagana Butera <nyamsprod@gmail.com>2014-08-07 10:43:43 +0200
committerIgnace Nyamagana Butera <nyamsprod@gmail.com>2014-08-07 10:43:43 +0200
commit0e7dbd52209c87efa2bdc8deccb9aeb72d3615b7 (patch)
tree71a1c20e2f1ff73ec5cb209e725052ab003818e5 /examples/filtering.php
parentfbd4c2c8722d5bc93f88463f50b73664035af692 (diff)
downloadcsv-0e7dbd52209c87efa2bdc8deccb9aeb72d3615b7.zip
csv-0e7dbd52209c87efa2bdc8deccb9aeb72d3615b7.tar.gz
csv-0e7dbd52209c87efa2bdc8deccb9aeb72d3615b7.tar.bz2
update examples for version 5.5
Diffstat (limited to 'examples/filtering.php')
-rwxr-xr-x[-rw-r--r--]examples/filtering.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/filtering.php b/examples/filtering.php
index b15c4b2..15d2127 100644..100755
--- a/examples/filtering.php
+++ b/examples/filtering.php
@@ -1,11 +1,14 @@
<?php
+error_reporting(-1);
+ini_set('display_errors', '1');
+
use League\Csv\Reader;
require '../vendor/autoload.php';
//you can instantiate the Reader class with a SplFileObject object
-$inputCsv = new Reader(new SplFileObject('data/prenoms.csv'));
+$inputCsv = Reader::createFromPath(new SplFileObject('data/prenoms.csv'));
$inputCsv->setDelimiter(';');
$inputCsv->setEncoding("iso-8859-15");