New to OOP in PHP. Where to start?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aym
    New Member
    • Oct 2007
    • 4

    New to OOP in PHP. Where to start?

    Hi,
    I am new member, and this my first post. Hope not to upset nyone of you.

    my problem is that I am used to program with php standards(funct ions, array,..etc), and suddenly I have been shocked with the OOP style and noticed that most professional programers use it to build their web applications.

    So can you give an advice?? or a resource to be familiar with this new style?
    Last edited by Atli; Oct 24 '07, 01:18 AM. Reason: Removed unnecessary bold text.
  • gm04030276
    New Member
    • Nov 2006
    • 17

    #2
    Unfortunately i'm not going to be terribly helpful, but I understand where your coming from, I was the same the first time I seen it! (still never use it, not yet anyway!) but your best bet (if your into such things) is to get a book or two (O'Reilly are good for these things!)

    Personally, i'm a learn it as I need it person so google is my friend! And probably yours if your looking for a quick tutorial to see what its about and basically how to use it
    (though if you want to get serious with it, and learn it properly, most will suggest a book)

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Hi. Welcome to TSDN!

      OOP can be very useful at times. I personally try to design all my code OOP style, using old fashion functions only under special circumstances. If designed correctly, your code can become much more manageable that way, but it does require a little more designing and foresight, or you may be coding yourself into a corner.

      As for learning OOP, there are a great number of tutorials online (try a Google search), and you could (should) also check out the php.net documentation on the subject.

      As suggested, you could also buy a book. Although personally, I don't like them. Can't stand the paper :)

      O, and a final note. If you are sill using PHP4, I strongly recommend upgrading to PHP5 before starting to use OOP.

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        I have edited the title of this topic to better describe it's contents.
        Please check out the Posting Guidelines before posting.

        I also removed the bold formatting from your post. Please use tools like bold and underline only to draw attention to parts of your post, don't post the entire text bold.

        Moderator

        Comment

        Working...