One of the great things that PHP 5 offers programmers is the ability to progam using Object Oriented Programming techniques (OOP) ie. Classes and Objects.
While the concept of OOP can be confusing when you first come across it, it is a powerful programming concept for writing tidy, ordered, reusable code.
Although OOP was introduced in PHP 4 it is generally accepted that this was an addition to PHP 4 whereas in PHP 5 it is a integral part of the original development of PHP 5.
For those looking to start using classes and objects in their PHP 5 code there are a couple of good articles I’ve come across introducing how to do this:
- Zend Developer Zone | PHP 101 (part 7): The Bear Necessities
- Getting started with objects with PHP V5
I’ve also found a couple of Webcasts on the subject on the site killerphp.com which can be accessed here.
There are also a couple of books available on the subjest including a book from No Starch Press simply called Object-Oriented PHP.
Leave a Reply
You must be logged in to post a comment.
