Home  >  Article  >  For beginners, how to quickly learn php from scratch? (To you who are confused)

For beginners, how to quickly learn php from scratch? (To you who are confused)

PHPz
PHPzOriginal
2021-02-25 17:27:319900browse

For beginners who are self-study of PHP, what language knowledge points need to be learned, where to start, why should they learn these, what should they do after finishing, and how can they learn PHP quickly?

Let’s look at the following:

Let’s first look at the learning route for PHP beginners (PHP learning route public welfare course is attached at the end of the article):

(1) Familiar with basic elements of web pages such as HTML/CSS/JS, and can create simple web pages by yourself at the completion stage. Relatively familiar with element properties.

(2) Understand the concept and operating mechanism of dynamic language, and be familiar with basic PHP syntax.

(3) Learn how to combine PHP with HTML to complete a simple dynamic page.

(4) Get in touch with MySQL and start designing databases.

(5) Continue to consolidate PHP syntax, be familiar with most of the common PHP functions, understand object-oriented programming, MySQL optimization, and some templates and frameworks.

(6) Finally complete a fully functional dynamic site.

Recommended learning: php programming introductory video tutorial

Novices should not think that learning PHP is very simple after seeing the summary above. Programming is It requires serious thinking and continuous practice on your part.

For beginners, how to quickly learn php from scratch? (To you who are confused)

#The following is a detailed explanation of the PHP learning route.

First of all, any website is composed of web pages. That is to say, if you want to complete a website, you must first learn to make web pages. Mastering the production technology of static web pages is a prerequisite for learning to develop websites.

So we need to learn HTML to lay the foundation for making websites in the future. Learning HTML should be done while learning. Every element in HTML must be practiced personally. Only after you understand what elements will have what effect can you remember them deeply. Just reading books will not work.

Assuming that you can already complete a static page, then it is time to start understanding dynamic languages. When you first come into contact with dynamic languages, many people may have a lot of confusion. The code is not output directly, but has to go through For processing, HTML goes through the HTML parser, and PHP also goes through the PHP parser. Just like learning HTML, if you want any parser to work, you must use its dedicated syntax structure.

You should feel lucky to learn PHP, because if you have learned other languages, you will find that PHP is relatively simple. At this stage, you have to understand the concepts of HTML and PHP, and you can do it now Let PHP calculate for you how much one plus one equals, and then output it in the browser. Don't feel naive. Although this is a small piece of code, it is a big step forward in your programming journey. But now, you are still a rookie.

The next step is to learn the database. MySQL can be said to be the golden partner of PHP. We want to conquer this database. After you understand the concept of the database, you must try to connect to the database through PHP, and then use PHP successfully inserts, deletes and updates data.

At this time, you may be in this state:

  • Do you know HTML?

Yes, I can compile several web pages with table layouts!

  • Do you know PHP?

Yes, I will write the operation of one plus one in the function and then call it!

  • Do you know MySQL?

Yes, I can insert and delete data in the database!

So what should we do next?

Try making a small guestbook. This is also a hurdle faced by novices.

It took a while, but you finally learned to insert the form data into the database and then displayed it. It should be said that the prototype of a program has been born.

However, you may look at this editing forum and that developing CMS. When can I write one?

Don't worry, consolidate your knowledge, and after you are familiar with the essentials of PHP and MySQL development, then look back at the guestbook you wrote. You may wonder if it was really written by you? At this time, you can improve the guestbook you wrote. The guest book should have registration and paging functions, and if possible, the UI can also be enhanced.

Does this count as learning? NO, NO, NO, it's still early. You haven't touched OOP yet, right? What about templates and frameworks? Still have to continue learning! The PHP framework provides a basic framework for building web applications, thereby simplifying the process of writing web applications in PHP.

It can save development time and help build more stable applications. So, PHP framework is a tool that can be used to save time and enhance your code.

When you choose a PHP framework for the first time, it is recommended to try a few more. Each framework has its own strengths and weaknesses. For example, the thinkphp framework is developed in China and is easier to get started. Due to its diverse functions and one Extensive support system, widely used in China. Laravel is a PHP framework developed abroad. It has great ideas and is widely used internationally. It is mostly used in some large-scale projects. However, it is difficult to get started and there is relatively little technical information.

After understanding object-oriented and frameworks, you should get in touch with XML. In short, you will never find that you have learned everything, and there is no end to learning! When learning something, never expect a quick fix. No matter how many skills you have, it will be in vain if you lack hard work.

One thing is guaranteed, that is, if you have learned PHP, then you will definitely learn other languages ​​​​quickly, and conversely, if you have learned other languages ​​​​before, then you will definitely learn PHP quickly.

It is definitely beneficial to learn more from other people's successful codes, so looking at those classic codes that have been refined over time is the best way to make progress.

In addition, it should be emphasized that you may encounter difficulties and get confused when learning a technology. You may have learned half of PHP and start thinking about C# again, or someone may say that Java is very good. , you must not waver at this time, you must persist to the end and learn it thoroughly.

I wish you success in learning PHP and developing the website you want.

Learning Route↓↓↓

##『Required Course』

1. Front-end

HTML5 CSS3 Javascript

1. "HTML5 Quick Start"

https://www. php.cn/course/1054.html

2.《CSS3 Quick Start》

//m.sbmmt.com/course/1055.html

3. "A Quick Introduction to JavaScript"


//m.sbmmt.com/course/1057.html

2. Backend

PHP BasicsTinkPHP/Laravel Framework Basics Practice

1. "PHP Video Tutorial"

//m.sbmmt.com/course/379.html

2. "ThinkPHP Development Basics"

https://www.php .cn/course/1155.html

3. "ThinkPHP Enterprise Site Rapid Development"

//m.sbmmt.com/course/1156.html

4. "Laravel Framework Video Tutorial"

//m.sbmmt.com/course/1167.html

『Elective Course』

Front-end Series

1. "Basic Tutorial on Vue.js Development"


//m.sbmmt.com/course/1158.html

2. "Front-end UI Framework—layui"

https:/ /m.sbmmt.com/course/1069.html

3. "Programmer Writing Tool: Markdown Video Tutorial"


https://www .php.cn/course/984.html

4.《ECMAScript New Functions In-depth Video Tutorial》


https://www.php. cn/course/782.html

5. "Introduction to Angular js"

//m.sbmmt.com/course/1171.html

6. "jQuery plug-in and packaging technology"

//m.sbmmt.com/course/1163.html

7 .《Bootstrap Framework Basic Course》

//m.sbmmt.com/course/1161.html

8.《Fun with CSS Flexbox Flexbox Layout 》

//m.sbmmt.com/course/1142.html

9. "Make layout as fast as 5G: CSS Grid grid layout"

//m.sbmmt.com/course/1146.html

10. "JavaScript Classic Cases"

https ://m.sbmmt.com/course/1165.html

11. "JQuery Quick Start"

//m.sbmmt.com/course/1170.html

Backend Series

1.《Smarty3. 0 Template Engine Usage Guide》

//m.sbmmt.com/course/1154.html

2.《API Interface Programming Technology》

//m.sbmmt.com/course/1174.html

3. "Basic Operations of PHP Files"

https:/ /m.sbmmt.com/course/1075.html

4. "PhpSpreadsheet for quick control of Excel with PHP"

//m.sbmmt.com/ course/1087.html

5. "MySQLi Process-oriented Quick Start"

//m.sbmmt.com/course/651.html

6. "MySQL Authoritative Development Guide (Tutorial)"

//m.sbmmt.com/course/903.html

7. "PHP Security and Vulnerabilities"

//m.sbmmt.com/course/1168.html

8. "Mac PHP Development Tools and Environment Build》

//m.sbmmt.com/course/1149.html

9.《Tips on using Git tools》

//m.sbmmt.com/course/1009.html

10. "Basic Tutorial on WeChat Mini Program Development"

https ://m.sbmmt.com/course/1166.html

11. "Thinkphp6.0 Official Version Video Tutorial"

https://www.php .cn/course/1086.html

12. "Introduction to PHP Video Tutorial: Learn PHP in One Week"

//m.sbmmt.com/course/ 170.html

13. "Classic Introduction to PHP String Operations"

//m.sbmmt.com/course/666.html

14. "Video Explanation of PHP Function Array Array Function"

//m.sbmmt.com/course/186.html

15. "Newbie Savior: Quick Preview of PHP7 Basic Syntax"

//m.sbmmt.com/course/1147.html

Practical Series

1. "PHP Practical Combat Tian Long Ba Bu - Imitating iQiyi Movie Website"

//m.sbmmt.com/course/801. html

2. "Quick Introduction to PHP Practical Development"

//m.sbmmt.com/course/902.html

3. "Practical Development of General Backend Management System"

//m.sbmmt.com/course/1157.html

4. "Bootstrap Framework Backend Development Practice》

//m.sbmmt.com/course/1162.html

5.《JavaScript Classic Case》

//m.sbmmt.com/course/1165.html

6. "vue tp separate development of real-time epidemic dynamic map"

https: //m.sbmmt.com/course/1172.html

7. "JSON and AJAX Principles and Practice"

//m.sbmmt.com /course/1153.html

8. "PhpSpreadsheet for quick control of Excel with PHP"

//m.sbmmt.com/course/1087 .html

9. "WeChat Mini Program--Corporate Microsite"

//m.sbmmt.com/course/1070.html

10. "TP6 Practical Combat of Building a Personal Blog"

//m.sbmmt.com/course/1134.html

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