And that's how to use SPL iterators in PHP. These classes allow you to use PHP's looping constructs to iterate over your data in a more powerful, readable, and elegant way than ever before.
We've only just scratched the surface here, and there are quite a number of other SPL classes and interfaces that you can use. I hope this course has whetted your appetite with a taste of what's possible!
I'm Matthew Setter and from all of us here at Envato Tuts+, thanks for watching!
1.Introduction1 lesson, 00:39
2.Getting Started3 lessons, 12:35
2.2The Sample Application02:29
2.3What Is the SPL?05:14
3.Building the Application4 lessons, 12:25
3.1The Core Classes02:09
3.2Retrieving All Episode Data03:17
3.3Retrieving Past and Upcoming Episodes02:24
3.4Tying It All Together04:35
4.Conclusion1 lesson, 00:38
And that's how to use SPL iteraters in PHP. Classes which allow you to use PHPs looping constructs to iterate over your data in a more powerful, flexible, and elegant way than you've done before. Admittedly, we've only just scratched the surface of what's possible, and there's quite a number of iteraters which you can use in addition to the other SPL objects and interfaces and exceptions. But I hope that this short course has whet your appetite for taste of what is possible, and finally I strongly, strongly, strongly encourage you to try them out in your own applications and see how you can minimize the amount of code that you need to write on a regular basis.