summaryrefslogtreecommitdiffstats
path: root/examples/writing.php
diff options
context:
space:
mode:
authorIgnace Nyamagana Butera <nyamsprod@gmail.com>2014-08-07 13:02:40 +0200
committerIgnace Nyamagana Butera <nyamsprod@gmail.com>2014-08-07 13:02:40 +0200
commit0bf043d9bd4f86102fa075d605ded9e153648ad4 (patch)
treef5cca85bd434952524c7a2cc5e88dc132b49f6f0 /examples/writing.php
parent352820cb5815f7cf4af9dc6851525ed273721c77 (diff)
downloadcsv-0bf043d9bd4f86102fa075d605ded9e153648ad4.zip
csv-0bf043d9bd4f86102fa075d605ded9e153648ad4.tar.gz
csv-0bf043d9bd4f86102fa075d605ded9e153648ad4.tar.bz2
deprecated get/setEnconding method
Diffstat (limited to 'examples/writing.php')
-rwxr-xr-xexamples/writing.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/writing.php b/examples/writing.php
index 30fb80d..5be7716 100755
--- a/examples/writing.php
+++ b/examples/writing.php
@@ -9,7 +9,7 @@ require '../vendor/autoload.php';
$writer = Writer::createFromFileObject(new SplTempFileObject); //the CSV file will be created into a temporary File
$writer->setDelimiter("\t"); //the delimiter will be the tab character
-$writer->setEncoding("utf-8");
+$writer->setEncodingFrom("utf-8");
$headers = ["position" , "team", "played", "goals difference", "points"];
$writer->insertOne($headers);
@@ -29,7 +29,7 @@ $writer->insertAll($teams);
<!doctype html>
<html lang="fr">
<head>
- <meta charset="<?=$writer->getEncoding()?>">
+ <meta charset="<?=$writer->getEncodingFrom()?>">
<title>Using the \League\Writer object</title>
<link rel="stylesheet" href="example.css">
</head>