CHAPTER 2Overview of Classes, Objects, and Interfaces

If you have worked with PHP in its earlier incarnations, then much of what you will find in PHP 5 is quite familiar, as you no doubt noticed from Lee Babin's survey of the major language features in Chapter 1. Like its predecessor, PHP 5 supports object-oriented programming, but the way in which this is implemented has changed; in fact, it has been expanded significantly from what was formerly available. In this chapter, we will acquaint you with the basics of classes, objects, and interfaces in PHP 5. In doing so, we will address the needs of several groups of readers to make sure that we all (forgive the expression) wind up on the same page.

This book assumes you have prior experience with ...

Get PHP 5 Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.