PHP code example of oto / reader-file
1. Go to this page and download the library: Download oto/reader-file 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/ */
oto / reader-file example snippets
use ReaderFile\ReadCSV;
...
{
...()
{
$filePath = 'path of the file';
try {
$result = ReadCSV::readFile($filePath, 'delimiter, default is ;');
} catch (\Exception $ex) {
echo $ex->getMessage();
}
echo $result;
}
}