PHP code example of bolstad / csv-writer
1. Go to this page and download the library: Download bolstad/csv-writer library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bolstad / csv-writer example snippets
date_default_timezone_set('Europe/Stockholm');
$ding = new CsvWriter\SimpleCsvWrite('out.csv','data/');
$demo = array('id'=>1,'name'=>'A nice name','city'=>'location');
$ding->writeCsv($demo);