PHP code example of rovangju / commie

1. Go to this page and download the library: Download rovangju/commie 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/ */

    

rovangju / commie example snippets




 Not needed if you use a PSR-0 autoloader, just register it normally */

use Commie\CSVFile;

$file = new SplFileObject('./file.csv');
$csv = new CSVFile($file, TRUE);

while (($row = $csv->read())) {
    echo $row->col('My Heading')->value();
}

echo $csv->row(10)->col('TOTAL')->value();