Home  >  Article  >  Backend Development  >  PHP learning methods and experiences

PHP learning methods and experiences

迷茫
迷茫Original
2017-01-16 13:23:442461browse

I have been learning PHP for more than a year, and many people around me have also joined the ranks of learning PHP. They asked me about my methods and experience in learning PHP, and I couldn't answer them for a while. Why? PHP is easier to learn and get started, certainly compared to other programming languages. Like Java, getting started is relatively difficult. The difficulty of learning PHP and .NET is basically the same. It may be easier to get started with PHP. Some people around me even look down on PHP. It is easier for them to choose to learn C++, Java, .NET, etc. I remember that a year ago, people around me still looked down on PHP. There is no need to learn PHP.

Learning PHP was probably an accident, because I first learned about hardware in a computer school, and ASP was included in the course. Later I felt that writing programs was very interesting. After studying for a while, I looked for website development languages ​​on the Internet. I saw PHP, and then I kept learning PHP. Now there are many such example tutorials and video tutorials on the Internet, but they are all basic content, and we still need Write a complete website yourself! In this way, I started writing a personal blog myself, and after finishing the process-oriented writing, I studied the thinkphp framework, watched video tutorials on the Internet, and practiced bit by bit. Then I wrote it using the framework and put it online!

Okay, so much has been mentioned above. We're officially getting down to business. Many PHP novices on the Internet are asking: how to learn PHP, how to learn PHP quickly, etc. Many novices ask this type of question online, and many people answer it. But they all seem to be the same, and the basics are very important. Haha, everyone must know that the basics are very important! Let me break down their thoughts here, talk about my methods of learning PHP, and share some of my experiences in the process of learning PHP. In fact, these methods can be applied to all programming language learning.

The basics are certainly important, but which PHP novices know what basic knowledge is important? For example, variables are widely used in PHP. We define a variable and then use this variable in the program. The basic part of PHP talks about defining a PHP variable and initializing a certain value for this variable. However, in our PHP project development, it is very rare to initialize a certain value when a variable is defined. Usually the value of a variable is either an input value obtained from the user or a value obtained from the database. The value of the variable is not determined, but changes from time to time. This is not just true for variables in PHP, there are many more.

My suggestion is: when new PHP users learn the basics of PHP, they only need to have a general understanding of it, rather than thoroughly understanding the basics of PHP. So when are we going to delve into the basics of PHP? Wait until we get started. That is, we will use PHP to develop a complete website. You will find out which of the previous PHP basics are very important in our projects and which are not used so often. At this time, if you complete a few more complete projects, your understanding of the basics of PHP will be clearer. Which modules of PHP basics are essential in our project, we will spend time to master that area. Like PHP session control, we have cookie-based and session-based ones. When you first learn the basics of PHP, you may go into both of them carefully. However, in reality, we only need to understand one of the PHP sessions. The control is OK! You can do things like member login and shopping cart.

First use PHP to develop a complete project, and then delve into each module of PHP basic knowledge. This is my suggestion.

How can I get started with PHP quickly? My suggestion is to watch PHP learning videos. Let’s start with the most basic ones, the front-end knowledge of html+css, and then understand javascript and jquery. When learning the front-end, we must master the knowledge of ajax! Then learn the basic knowledge of PHP. After reading everything, you can do a small project to practice your skills, whether it is a corporate website or a blog!

Okay! Having said all that, there is actually no fixed way to learn PHP. What you need to learn a programming language is a lot of programming. As long as you write the program yourself and then see its running results, you It will be easier to remember that method. I will also share more experience sharing with you on the php Chinese website. I don’t like to copy and paste what others have written on the Internet, but I will carefully read the code written by others, understand their thoughts, and then share my opinions with everyone in a language that is easier to understand! Haha, and there are If you want to share anything, please pay attention to php Chinese Internet Cafe! Share and communicate together. Finally, I wish you all to get narrower and narrower on the learning path of PHP.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn