Chapter 3: Advanced OOP Features
In this third chapter, we're going to look at some of the more advanced object-oriented language features within PHP 8.
First, we're going to explore the Standard PHP Library – SPL for short. This is a collection of built-in classes, interfaces, and functions that provide some highly useful functionality and are guaranteed to be available in your PHP installation.
Next up, we're going to take a look at exceptions and error handling in general. We're going to learn what exceptions are and how we can use them to provide safety and easier debugging for our projects.
Finally, we're going to dip our toes into the mystical and powerful world of meta-programming. This is going to introduce you to the awesome power of reflection, and you will learn how it can empower you to regard code as data and thereby increase your power as a programmer dramatically.
This chapter will cover the following main topics:
- SPL...