Summary
Throughout this chapter, we took a detailed look into each and every magic method PHP has to offer. The ease of their use is equally impressive as the power they bring to the language. Simply naming our class methods appropriately, we were able to tap into pretty much every aspect of an object state and behavior. While most of these magic methods are not something we will be using on a day-to-day basis, their existence empowers us with some nifty architectural styles and solutions that are not that easily possible with other languages.
Moving forward, we will step into the realm of CLI and the more elusive use of PHP.