Be aware.There is bug 46569 persists that breaks usage of SplFileObject::fgetcsv() after SplFileObject::seek()-ing to a non-zero position and then returns the contents of wrong line - off by one<?php$file = new SplFileObject('foo/bar.csv');$file->seek(1);print_r($file->fgetcsv()); // reads 3rd line against 2nd