I’ve been writing PHP for about six years now and have got to a point where I feel I should be doing more to write better code. I know that Object Oriented code is the way to go but I can’t get my head around the concept.
Can anyone explain in terms that any idiot can understand, OO and how it works in PHP or point me to an idiots guide tutorial?
I have been in your shoes, but I saw the light after I read this book (a few times!) http://www.apress.com/book/view/9781590599099 After I read this, I really ‘got’ it and I haven’t looked back. You’ll get it on Amazon.
I hope you persist, get it, and love it. When it comes together, it will make you smile.
Composition beats inheritence.