Jump to content

[SOLVED] Beginning in OOP


hostfreak

Recommended Posts

Well, I am really now just starting to learn OOP. I figure I should probably learn OOP for php5, however my host is running php4. Therefore, would it be worth just starting in php4 or what? I could of course run php5 on my own system and learn it that way, however I also want to implement some OOP on my current scripts hosted with my current host (php4).

 

I guess once learned on php4, the transition to OOP in php5 shouldn't be too bad?

Link to comment
Share on other sites

PHP5 is backward compatible with PHP4, but it's not the best way of doing things.

 

I would recommend you start with PHP5, if only because the syntax and methodologies 'port' better to different languages, and give you a better understanding of Object Oriented Design

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.