PHP learning methods and experience

Source: Internet
Author: User
Tags php session
Is the basic knowledge of php very important? 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 learned about hardware in computer schools. ASP was included in the course and later I thought programming was very interesting. After learning for a while, I found the language for website development on the Internet, saw PHP, and then I kept learning php. now there are many such instance tutorials and video tutorials on the Internet, but they are all basic content. we still need to write a complete website on our own! In this way, I wrote my own blog, finished the process-oriented writing, and then I studied the thinkphp framework. It was also a video tutorial on the Internet, a 1.1 point exercise. Then I wrote it in the framework and got it online!

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. First, let's look at the basics. the front-end knowledge is html + css, and then javascript and jquery. when learning the front-end, we must master the ajax knowledge! After learning the basic php knowledge, you can build a small project to practice your website or blog!

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 in the first PHP community. 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! For more information, see the first PHP community! Share and communicate with each other. Finally, I wish you a narrower learning path in PHP.

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.