diff --git a/examples/basic.php b/examples/basic.php index 5744525..beec5cb 100644 --- a/examples/basic.php +++ b/examples/basic.php @@ -3,11 +3,11 @@ # include parseCSV class. -require_once('../parsecsv.lib.php'); +use ParseCsv\Csv; # create new parseCSV object. -$csv = new parseCSV(); +$csv = new Csv(); # Parse '_books.csv' using automatic delimiter detection... diff --git a/examples/conditions.php b/examples/conditions.php index c778b1d..c806428 100644 --- a/examples/conditions.php +++ b/examples/conditions.php @@ -3,11 +3,11 @@ # include parseCSV class. -require_once('../parsecsv.lib.php'); +use ParseCsv\Csv; # create new parseCSV object. -$csv = new parseCSV(); +$csv = new Csv(); # Example conditions: diff --git a/examples/download.php b/examples/download.php index bc4177f..19b46e1 100644 --- a/examples/download.php +++ b/examples/download.php @@ -2,11 +2,11 @@ # include parseCSV class. -require_once('../parsecsv.lib.php'); +use ParseCsv\Csv; # create new parseCSV object. -$csv = new parseCSV(); +$csv = new Csv(); # Parse '_books.csv' using automatic delimiter detection... @@ -31,4 +31,4 @@ $csv->output('books.csv'); # or is set to null, output will only return the generated CSV # output data, and will not output to the browser itself. -?> \ No newline at end of file +?> diff --git a/examples/limit.php b/examples/limit.php index a018f59..d0635b3 100644 --- a/examples/limit.php +++ b/examples/limit.php @@ -3,11 +3,11 @@ # include parseCSV class. -require_once('../parsecsv.lib.php'); +use ParseCsv\Csv; # create new parseCSV object. -$csv = new parseCSV(); +$csv = new Csv(); # if sorting is enabled, the whole CSV file