Read all CSV files from a directory.
$path = 'pending/';
foreach(glob($path.'*.csv') as $file) {
$csv = array_map('str_getcsv', file($file));
//do something with $csv
}
Read all CSV files from a directory.
$path = 'pending/';
foreach(glob($path.'*.csv') as $file) {
$csv = array_map('str_getcsv', file($file));
//do something with $csv
}