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
2010-04-07 11:19:27
+1
A:
I ended up using a few books, PHP for Absolute Beginners and Object Oriented PHP by Peter Lavin.
Doug
2010-05-17 16:37:07