PHP How OOP

Source: Internet
Author: User
I used to write PHP in a process-based or simple func way, because the scope of the application was small, so the problem was not obvious. Now the need to expand the application, so that the coding pressure is getting bigger. So want to use OO, but always feel not to know how to feel? For a beginner, how to start PHP oo?

Reply content:

I used to write PHP in a process-based or simple func way, because the scope of the application was small, so the problem was not obvious. Now the need to expand the application, so that the coding pressure is getting bigger. So want to use OO, but always feel not to know how to feel? For a beginner, how to start PHP oo?

I suggest you try to re-do your simple project based on a certain framework, and I guarantee that your perception of OOP will be like a torrent of water.

Of course you can also see some good tutorial, such as Symfony Classic jobeet:http://symfony.com/legacy/doc/jobeet/..., and then after that, there is a perception of the SF framework and OOP.

Then you look at the design patterns, think about the books you've read or the code you've written, think about why and how, and you can try to write a framework yourself. I believe that doing these things will make your oop ideas leap.

Desktop application Development It's best to know a little bit about it, because some of the concepts in OOP or design patterns are much more rooted in desktop programming, and it helps to understand.

Many PHP design Patterns online blog posts, as well as this book is called "PHP design mode" ~ ~

PHP design Pattern Salai (Aaron Saray), Liang Zhimin, Mr. Cai Tsinghua University Press (2010-06 published)

I see in this blog, hope to help you ~
Http://www.cnblogs.com/bluefrog/archi ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.