Read CSV Files from a Folder

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  
}
Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn