Chapter *. OBJECT-ORIENTED FEATURES NEW TO PHP 5

PHP 3 was released in mid-1998. Some basic object-oriented (OO) capabilities were included, more or less as an afterthought, to "provide new ways of accessing arrays."[*] No significant changes were made to the object model when version 4 was released in mid-2000. The basics of object-oriented programming (OOP) were there—you could create a class and single inheritance was supported.

[*] See Zeev Suraski, "Object-Oriented Evolution of PHP," available at www.devx.com/webdev/Article/10007/0/page/1. (Accessed March 27, 2006.)

With the release of PHP 5 in 2004 there was plenty of room for improving PHP's OO capabilities. At this point, Java, the most popular OO language to date, had already been around ...

Get Object-Oriented PHP 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.