summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnace Nyamagana Butera <nyamsprod@gmail.com>2015-02-16 16:56:58 +0100
committerIgnace Nyamagana Butera <nyamsprod@gmail.com>2015-02-16 16:56:58 +0100
commit2a53469f6d6d07293de4ac1e91fba941590dd7d2 (patch)
tree4112c8a8ae1d1d5e4a4168027fd2b8b6d67c94c0
parent269f03d0a7db2c9c66b4ff5fb463ca1aab1ae2a7 (diff)
downloadcsv-2a53469f6d6d07293de4ac1e91fba941590dd7d2.zip
csv-2a53469f6d6d07293de4ac1e91fba941590dd7d2.tar.gz
csv-2a53469f6d6d07293de4ac1e91fba941590dd7d2.tar.bz2
update examples directory
-rwxr-xr-xexamples/bom_excel_macos.php2
-rw-r--r--examples/writer-benchmark.php2
-rwxr-xr-xexamples/writing.php1
3 files changed, 0 insertions, 5 deletions
diff --git a/examples/bom_excel_macos.php b/examples/bom_excel_macos.php
index 535ffba..1858d31 100755
--- a/examples/bom_excel_macos.php
+++ b/examples/bom_excel_macos.php
@@ -19,8 +19,6 @@ $csv = Reader::createFromPath(__DIR__.'/data/prenoms.csv');
//we must use a temp file to be able to rewind the cursor file without loosing
//the modification
$writer = Writer::createFromPath('/tmp/toto.csv', 'w');
-//we do not care about null value
-$writer->setNullHandlingMode(Writer::NULL_HANDLING_DISABLED);
//adjust the output BOM to be used
$writer->setOutputBOM(Writer::BOM_UTF16_LE);
// we register a Transcode Filter class to convert the CSV into the proper encoding charset
diff --git a/examples/writer-benchmark.php b/examples/writer-benchmark.php
index 2b4e67b..20e7289 100644
--- a/examples/writer-benchmark.php
+++ b/examples/writer-benchmark.php
@@ -21,8 +21,6 @@ function generateRawData($start, $end)
$start = microtime(true);
$nbrows = 200000;
$csv = Writer::createFromPath('result.csv', 'w'); //to work make sure you have the write permission
-//$csv->setNullHandlingMode(Writer::NULL_HANDLING_DISABLED); //uncomment with useValidation to true to compare the speed
-$csv->useValidation(false); //change the 'true' to compare the value when validation are on
$csv->insertAll(generateRawData(0, $nbrows));
$duration = microtime(true) - $start;
$memory = memory_get_peak_usage(true);
diff --git a/examples/writing.php b/examples/writing.php
index c297f9b..e4ac6c6 100755
--- a/examples/writing.php
+++ b/examples/writing.php
@@ -8,7 +8,6 @@ $writer = Writer::createFromFileObject(new SplTempFileObject()); //the CSV file
$writer->setDelimiter("\t"); //the delimiter will be the tab character
$writer->setNewline("\r\n"); //use windows line endings for compatibility with some csv libraries
$writer->setEncodingFrom("utf-8");
-$writer->setNullHandlingMode(Writer::NULL_AS_EMPTY); //if a null content cell is encountered it will be converted into a empty content
$headers = ["position" , "team", "played", "goals difference", "points"];
$writer->insertOne($headers);