Overview
Dive into the powerful yet underutilized Standard PHP Library (SPL) in this comprehensive 59-minute conference talk from PHP UK Conference 2014. Explore numerous iterators, data structures, and interfaces defined by SPL, learning when and how to implement them in your projects. Discover edge cases and unexpected behaviors in SPL, gaining insights into Traversable, Iterator, Countable, and various specialized iterators. Examine PHP source code, iterator aggregation, and recursive operations. Delve into SPL arrays, data structures, Big O notation, and object storage. Understand SPL exceptions, including logic and runtime exceptions, and learn best practices for exception handling. Cover miscellaneous topics such as autoloading and area objects, while gaining practical tips on making SPL easier to use in your development workflow.
Syllabus
Introduction
SPL Documentation
Traversable
Iterator
Countable
Iterating
PHP Source Code
Iterators
Iterator Aggregate
Something Iterator
Recursive Iterator
Recursive Filter Iterator
Lookahead Iterator
SPL Iterators
SPL Arrays
SPL Data Structures
Big O Notation
SPL Object Storage
SPL Exceptions
Logic Exceptions
Runtime Exceptions
Never throw exception
Miscellaneous stuff
Autoloader
Area Objects
How to make the SPL easier
Taught by
PHP UK Conference