The Standard PHP Library (SPL) is a collection of useful classes for traversing, filtering, and sorting data and objects. One of its main features is the iterator, which provide easy access to arrays, trees, and directory listings. In this course, David Powers reviews using these iterators to explore the file system, and combining iterators in order to edit and manage specific types of files. He'll show how to load XML and JSON data, convert arrays into nested lists, and work with data structures such as doubly linked lists, queues, and heaps. Start learning how to put SPL into practice, and extend the power of your PHP applications.
Using SPL iterators
Working with text files
Exporting and extracting data
Converting between arrays and iterators
Combining and merging iterators
Creating a repeat sequence with InfiniteIterator
Working with data structures