PHP code example of tth / read-as-arr

1. Go to this page and download the library: Download tth/read-as-arr 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/ */

    

tth / read-as-arr example snippets




use ReadAsArr\ReadCsv;
use ReadAsArr\ReadFile;

foreach(ReadCsv::asArr(__DIR__.'/tmp.csv') as $value){
    echo implode(":",$value).PHP_EOL;
}

foreach(ReadFile::asArr(__DIR__.'/tmp.csv') as $value){
    echo $value.PHP_EOL;
}