mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
updated examples for using new classname
This commit is contained in:
@@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
|
|
||||||
# include parseCSV class.
|
# include parseCSV class.
|
||||||
require_once('../parsecsv.lib.php');
|
use ParseCsv\Csv;
|
||||||
|
|
||||||
|
|
||||||
# create new parseCSV object.
|
# create new parseCSV object.
|
||||||
$csv = new parseCSV();
|
$csv = new Csv();
|
||||||
|
|
||||||
|
|
||||||
# Parse '_books.csv' using automatic delimiter detection...
|
# Parse '_books.csv' using automatic delimiter detection...
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
|
|
||||||
# include parseCSV class.
|
# include parseCSV class.
|
||||||
require_once('../parsecsv.lib.php');
|
use ParseCsv\Csv;
|
||||||
|
|
||||||
|
|
||||||
# create new parseCSV object.
|
# create new parseCSV object.
|
||||||
$csv = new parseCSV();
|
$csv = new Csv();
|
||||||
|
|
||||||
|
|
||||||
# Example conditions:
|
# Example conditions:
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
|
|
||||||
# include parseCSV class.
|
# include parseCSV class.
|
||||||
require_once('../parsecsv.lib.php');
|
use ParseCsv\Csv;
|
||||||
|
|
||||||
|
|
||||||
# create new parseCSV object.
|
# create new parseCSV object.
|
||||||
$csv = new parseCSV();
|
$csv = new Csv();
|
||||||
|
|
||||||
|
|
||||||
# Parse '_books.csv' using automatic delimiter detection...
|
# 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
|
# or is set to null, output will only return the generated CSV
|
||||||
# output data, and will not output to the browser itself.
|
# output data, and will not output to the browser itself.
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
|
|
||||||
# include parseCSV class.
|
# include parseCSV class.
|
||||||
require_once('../parsecsv.lib.php');
|
use ParseCsv\Csv;
|
||||||
|
|
||||||
|
|
||||||
# create new parseCSV object.
|
# create new parseCSV object.
|
||||||
$csv = new parseCSV();
|
$csv = new Csv();
|
||||||
|
|
||||||
|
|
||||||
# if sorting is enabled, the whole CSV file
|
# if sorting is enabled, the whole CSV file
|
||||||
|
|||||||
Reference in New Issue
Block a user