PHP learning methods and PHP experience for beginners

Source: Internet
Author: User

It has been more than a year since I learned PHP by myself. Many people around me have joined the PHP learning ranks. They asked me how to learn PHP and how to learn it. I won't be able to answer it at half past one. Why? PHP is easy to get started with, of course, compared with other programming languages. For example, Java is difficult to get started. PHP and. NET is almost difficult to learn. It may be easier to get started with PHP. Even some people around me still look down on PHP. They are more likely to choose to learn C ++, Java and. NET and so on, remember that I haven't learned PHP around me a year ago.

It was also an accident to learn PHP, because at first I borrowed books from the front-end of the webpage from the school library. After learning for a while, many people on the Internet say that the optical front-end is meaningless. So I went to the library to borrow books related to the back-end. I was selecting a book in the library and saw a book called "Let's talk about PHP". I even read this book without thinking about it, A very thick book, I think the author wrote very fine, and I borrowed it. I still have this book! Haha, it seems that there are only three books in the library. I borrowed one from here. I have been borrowing it for more than a year. I have been studying it for a long time. I have read it several times, and I have also studied the CMS system later. My blog, love program network, also learned the last CMS and made it by myself. The code is all written by myself. However, I borrowed a verification code class and a paging class.

Okay, so much. We officially entered the topic. Many new PHP users are asking: How to Learn PHP and how to quickly learn PHP. There are also a lot of new users asking this kind of questions online, and there are also a lot of people answering this kind of questions. But it seems that they are all the same, and the foundation is very important. Well, everyone must know that the basics are very important! I will split their ideas here, talk about my PHP learning methods, and share some of my experiences in learning PHP. In fact, these methods can be applied to all programming languages.

The basics are important, but what new PHP beginners know about the basics! For example, variables are widely used in PHP. We define a variable and then use it in the program. The basic section of PHP is to define a PHP variable and initialize a definite value for the variable. However, in our PHP project development, it is rare to initialize a fixed value during variable definition. Generally, the value of a variable is not the input value obtained from the user or the value obtained from the database. The value of a variable is not determined, but changed from time to time. This is not just the case for variables in PHP, but there are many more.

My suggestion is: when a beginner in PHP learns the basic knowledge of PHP, he only needs to know about it and should not thoroughly understand the basic knowledge of PHP. So when will we go into the basics of PHP? After getting started. That is, we will use PHP to develop a complete website. You will find out which of the above basic PHP knowledge is very important in our projects and which are not so frequently used. At this time, you will complete several more complete projects, and your understanding of the basic PHP knowledge will be clearer. Which PHP-based modules are essential in our projects, so we will spend time mastering them. You are like PHP's session control. We have cookie-based and session-based sessions. At the beginning, when you learn basic PHP knowledge, you may take these two sessions into detail. However, in reality, we only need to know one of the PHP session control items! Like a member logging on to the shopping cart, you will do it.

I will first use PHP to develop a complete project, and then go deep into every module of PHP basic knowledge. This is my advice.

How can PHP get started quickly? My suggestion is to watch PHP Learning Videos. PHP videos are available on the Internet. I remember when I first started learning PHP, I watched a video from the LAMP brokers connected to Gao. Here I want to say thank you to Mr. Gao. Thanks to the video tutorial provided by the LAMP brokers, they are also grateful for their selfless dedication. I believe that you have a video with a senior teacher reading this article. Although it is all about the basics, after you develop a complete project, when you look at it again, you will find that this is the important foundation of that part. How to develop a complete PHP website? I suggest you take a look at the tutorial of Zhao Bo, Senior brother of PHP in the West. He will teach you to develop a complete CMS system later. Although it is not very powerful, it is enough to do it at the beginning! Continue to improve later! Right.

Okay! Having said so much, there is no fixed way to learn PHP. To learn the programming language, we need multi-programming. You only need to write the program yourself and then check its running results, you can easily remember that method. I will share more experiences with you on the love Program website of my blog. I do not like to copy or paste anything written by others on the Internet, but I will carefully read the code written by others, understanding their ideas and then I will share my views in a language that is easier to understand! Well, if you have any other information, please pay attention to my website! Share and communicate with each other. Finally, I wish you a narrower learning path in PHP. Original address: http://www.aichengxu.com/article/PHP/303_1.html copyright belongs to love program network author, reproduced Please retain.

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.