summaryrefslogtreecommitdiffstats
path: root/examples/download.php
blob: 233d4f55b644f252062930ca96b7ef3872c710d1 (plain)
1
2
3
4
5
6
7
8
9
<?php

use League\Csv\Reader;

require '../vendor/autoload.php';

$inputCsv = Reader::createFromPath('data/prenoms.csv');
$inputCsv->setEncodingFrom('ISO-8859-15');
$inputCsv->output('firstname.csv'); //specifying a filename triggers header sending