Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Codewalkers:
Diving Into OOP in PHP
Nov 13, 2003 @ 13:07:13

New from Codewalkers.com this morning, there's an article that all of you wanting to dive into objects and classes in PHP should find quite interesting.

Beginning Object Oriented Programming in PHP seeks to "strip away all the hype and mystique surrounding OOP in PHP, and provide you with a simple, easy-to-follow lesson in how things work. They start off talking about the objects themselves, the base of the OOP structure. They show you how they can be used and segway straight into the classes that they come from. Digging even deeper into the classes, they then cover methods (functions inside a class), and how to call them with your newly created object. And, of course, not to leave out one of the more powerful features of OOP, they give an example of the extends statement and how it can be used to share functionality between classes/objects.

It's nice to finally see an introduction on this topic that involves nothing about cars. I remember when I was starting with OOP in PHP, and how lost I felt reading over those. This piece is head and shoulders above the rest I've read, making it much clearer than just $car->turn_key().

tagged:

Link:


Trending Topics: