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  
}
Facebook
Twitter
LinkedIn