CHAPTER 4 – PHP 5 Advanced OOP and Design Patterns
"I made up the term `object-oriented,' and I can tell you I didn't have C++ in mind."--Alan Kay, OOPSLA '97 4.1 INTRODUCTION In this chapter, you learn how to use PHP's more advanced object-oriented capabilities. When you finish reading this chapter, you will have learned Overloading capabilities that can be controlled from PHP code Using design patterns with PHP 5 The new reflection API
4.2 OVERLOADING CAPABILITIES In PHP 5, extensions written in C can overload almost every aspect of the object syntax. It also allows PHP code to overload a limited subset that is most often needed. This section covers the overloading abilities that you can control from your PHP code.