Location: PHPKode > scripts > b3rtCSVReader > b3rtcsvreader3/example.php
<?php
//header('Content-Type: text/plain');

require 'class.b3rtCSVReader.php';

$csvReader = new b3rtCSVReader();
$csvReader->setFilename('./example.csv');
$csvReader->setDelimiter(';');

while ($csvRecord = $csvReader->fetchRecord())
	print_r($csvRecord);

if ($csvReader->getErrors())
{
	echo "\nErrors:\n";
	print_r($csvReader->getErrors());
}

unset($csvReader);
?>
Return current item: b3rtCSVReader