PDA

View Full Version : OOP, Classes and PHP4/5


The_Fire
24th September 2006, 02:21 PM
Ok, here's the deal: I've learned Object Oriented Programming in PHP5, but reality is that most of the clients I'll be working with in the immidiate future are probably hosted on either PHP4.4 or PHP4.3.

This means that the kick ass PHP5 OOP fully dynamic CMS system, I've almost completed won't work as it stands.

I've tried searching for a comparison of the two versions way of handling classes to make a backwards compatible version, but my google-fu doesn't seem to be working.

Anyone capable of helping me with this? What are the differences between classes under PHP4 and classes under PHP5?

I know that there's the constructor/deconstructor thing but anything else?

Morrigan
5th October 2006, 08:14 PM
Try looking at the PHP manual? I mean... it's hard to just summarize the differences right here like that. But an important one is the appearance of real public/protected/private member variables and methods.