开发者

PHP OOP Getting started [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I have always been "scared" of OOP, i understand the classes, functions and constructors as I use classes in a开发者_StackOverflow中文版 java based language called Processing at University.

However, I am unsure how to go about adopting OOP into the code I use, could someone please direct me to a good some good tutorials where I can learn about it. I'm really interested in web technologies and always use PHP for backend processing but I would like to also improve my knowledge of it as I belive I am at the stage where I can progress to more advanced things... such as OOP.

Thanks


I would start with reviewing the PHP manuals pages on OOP. Then maybe consider investigating design patterns.


I could recommend this books:

PHP Objects and Patterns

PHP Object-Oriented Solutions

also you can invest in some good video tutorials like lynda.com's PHP Beyond Basics:

PHP Beyond Basics


If you understand the basics of OOP, you are at the point to start learning about design patterns. A book like "Head First Design Patterns" from O'Reilly, will get you started.


As in any language it's important to get familiar with design patterns. Some are very practical and are used constantly to tackle and approach typical problems.

Although you could do an easy search on "php design patterns", this one coverts some basic patterns which are used often.

Besides the above, I'd just like to say that you have to start using OOP! I believe that experience is a very, very important aspect of learning OOP, and to use it correctly in every situation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜