I have data file with two lines (two lines just for my example, in real, that file can contain millions of lines) and I use SplFileObject and LimitIterator with offseting. But this combination have strange behaviour in some cases: Output is: 01 But with $offset set to 1, output is blank (foreach doesn’t iterate any line). My data file contain