DevShed finishes off their "loader" series of tutorials today with this eighth part focusing on the use of Directory Iterators.
Here's where the SPL comes in, since it's possible to use a combination of its "spl_autoload_register()" function and its RecursiveDirectoryIterator class to refactor the method in question and make it shorter and tighter. In this final chapter of the series I'm going to improve the loader class developed in the previous one by incorporating some of the aforementioned SPL functions and classes.
They change up their code to use a RecursiveDirectoryIterator inside of their __autoload to remove their custom recursive code.