PHP and OOP

In the early 1990s, the most popular compilers—for example, the family of Borland compilers—became able to handle the object-oriented programming (OOP) extensions of such "base languages" as Pascal and C. Suddenly, classes, objects, templates, and inheritance were the buzzwords, the hottest topics in software development. OOP was hip and a lot of companies jumped onto the trend by converting all their software packages from procedural to object-based applications. Today the hype has faded, but a language that can't handle objects is still considered out of date. PHP supports objects, and in this section we discuss the pros and cons of OOP with PHP.

We think that the movement to develop all software OOP-style only is a little bit doubtful. ...

Get Web Application Development with PHP 4.0 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.