Level up your code with the power of Iterators and Generators. Iterators were added in the SPL (Standard PHP Library) for many years but is still one of the less understood parts of the language. We will cover how to easily loop over your objects via the power of Iterators, and then move into another way of doing this with Generators. Generators allow you to make almost anything able to be looped over, without the need to use the full Iterator interface. Come join us as we traverse these paths of code that will leave you looping with ease!

Comments

Please login to leave a comment

I thought I knew something. I was not prepared.

Chris Lemon at 13:16 on 21 May 2026

Maybe my favourite talk of the conference. Generators are something I've always been curious about but never really groked. This talk did a great job breaking down how they worked and when to use them. And as a bonus, there was great information on extending Iterators. Well done!

Ryan Howe at 14:55 on 21 May 2026

This was a great dive into features of the language that are just not utilized as well as they should be, simply from a lack of exposure and understanding