PHP code example of simplicity-ag / cao-csv-output

1. Go to this page and download the library: Download simplicity-ag/cao-csv-output 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/ */

    

simplicity-ag / cao-csv-output example snippets


    
    return array(
        'modules' => array(
            // ...
            'CaoCsvOutput',
        ),
        // ...
    );
    

    $data = array(
      array('a', 1, 'a + b'),
      array('b', '"', ';'),
    );
    $csv = new CaoCsvOutput\Model\Csv($data);
    $output = $csv->render();
    

    echo $this->csvOutput($data);
    

echo $this->csvOutput($data, ',', "'", true);
bash
    $ php composer.phar update