$file = "file.csv";
$csv = new SplFileObject($file);
$csv -> setFlags(SplFileObject::READ_CSV);
$csv -> setCsvControl(';'); //separator change if you need
foreach( $csv as $ligne){
print_r($ligne); //$ligne is an array
}