tags:

views:

46

answers:

2

I've been trying to learn PHP OOP and have looked at multiple articles, but have yet to find a good resource for learning. I want to learn from the user of setters and getters, $this->, constructors, and so on...! Can anyone please suggest me something? I noticed MOST teachings leave out the explanation of $this->. I want to learn magic methods, decorators, encapsulation, etc... Feel free to suggest something that I haven't explicitly listed.

+2  A: 

Most OOP concepts are language agnostic, but since PHP isn't the strongest OO language out there, have you considered learning using a different language [Java, Smalltalk, etc] ? Once you have the concepts down, it'll simply become a matter of looking up php equivalent syntax for the most part.

sjobe
+1  A: 

I ended up using a few books, PHP for Absolute Beginners and Object Oriented PHP by Peter Lavin.

Doug