Talk in English - US at Lone Star PHP 2017
Checkout the code: https://gitlab.com/ericpoe/iterating-things
View Slides: http://slides.com/ericpoe/irritating-strings-iterating-things-67870d69-238c-4c3d-b4be-434440eb274f
Short URL: https://joind.in/talk/3e558 (QR-Code (opens in new window))
Arrays are beautiful in PHP. One can map them, reduce them, filter them, foreach them, and use them in generators. Strings, on the other hand, are mere shadows to the Array. One can, uh, input and output Strings, and, when brave, manipulate them. What makes Arrays so awesome and Strings so dull? Iterators.
In this talk, we’ll look at the modest origins of the String and the basics of the Iterator. Then, we’ll look at how we can make the String as awesome as the Array through the use of iterator interfaces.
By the end of this talk, you will know the origins of the PHP String and you will be able to extend your knowledge of iterating through a String to be able to iterate through customized objects.
Comments are closed.
LOVED the simple step by step progression coupled lots of clearly written code examples. Thank you for posting the slides - will definitely being going back through them. Also, very entertaining speaker! Fun talk!