One of the most underrated PHP extensions is likely the SPL or Standard PHP Library. With its initial introduction in PHP 5, it offered a number of iterators, interfaces, and exceptions similar to those of the C++ Standard Template Library. In PHP 5.3, the SPL gained several new additions: a number of container classes were introduced with specialized algorithms to increase performance for specific applications. This presentation provides background on the goals of the SPL as well as some of the components included in its initial release in PHP 5. It reviews information on data structures as they relate to SPL containers, the high-level algorithms associated with them, and their appropriate applications. Example use cases and current benchmarks versus traditional arrays for each component are included. The presentation assumes no formal education and is suitable for novice and intermediate level developers with little or no experience with SPL or data structures in general.

Comments

Comments are closed.

Loved it. Great info with lots of deep technical background.

nice comparisons between built-in data types and new data types, with good visualizations of those comparisons

Great overview. It's really nice to see these data structures finally arriving in php. Having implemented a number of these myself, I would much rather they be implemented natively.

Really looking forward to using some of the new SPL features in PHP 5.3. This presentation was a great overview of these data structures for someone without a computer science background.

Great job. Nice to see real structure making it's way to php.

Definitely knew his stuff! Great explanations of several of the SPL features, with speed comparison charts which was great for illustrating they should be utilized. Would have liked to have seen some practical applications of problems they solve, when you use them, etc, but excellent presentation nonetheless!

Excellent info and analysis!

Found it very useful and once our 5.3 conversion is done will put it to use. Loved the visuals

LIES! I mean benchmarks. Great stuff, thanks for the comparisons.

Did a very good job with how to use it and benchmarks
I would suggest some when and how examples at the end of the talk. Use cases and real world examples always help.

The best SPL talk I've attended (even surpassing mine) ! Great to see Matthew not only was able to translate common CS terms into plain English (for those without a CS degree), but also providing benchmarks to actually prove where and when SPL is the better choice.

A must see session ! Conference ppl, you need to have Matthew on stage !

Great talk. For anyone not using SPL you're missing out. I have to second what DragonBe said....Matthew was able to translate common CS terms to plain English. Even his photos painted a relatable picture.