Behavioral pattern: Iterator Refactoring.Guru: Iterator SourceMaking: Iterator Examples Iterator in PHP: Csv Iterator