PHP is the web programming language of choice (or scripting language, if you insist…) for many people, and my favorite as well. One thing I find interesting is when it’s taught, by many books and websites, they tend to not spend much time on Object-Oriented PHP. It’s deemed to be for “advanced” coders and left out.

As a result, I didn’t know much about how to work with classes and the like until more recently than was good. And I am still not quite comfortable with coding that way. It’s going to take some time to get used to.

The Object Oriented approach to writing in PHP isn’t too hard to grasp theory-wise, though there are some odd things about it, and it takes a bit of practice to get the hang of. If you haven’t brushed-up on it yet, now’s a good time.

Related Posts

I also try to code my WordPress plugins in an object oriented manner. Though I must admit that some parts of it is not very OO :).

http://intensedebate.com/people/redwall_hp redwall_hp

Either way, they look a lot better than mine. They look…clean.

Jane

Thanks for putting this together. OOP is so important to keep PHP lean and reusable. Since I'm still learning, I use a lot of cheat sheets. I always have my iPhone with me, so I keep them there for handy reference – even offline. The best PHP cheat sheet I've found so far is from these guys: