Home Backend Development PHP Tutorial Some experiences in learning PHP (1)_PHP tutorial

Some experiences in learning PHP (1)_PHP tutorial

Jul 15, 2016 pm 01:24 PM
php people study start yes of experience Own

Momo Mo started asking others how to learn PHP. Later, many people came to ask Mo Mo how to learn PHP. No matter Mo Mo is a novice or an experienced player, he always seems to be unable to figure out a clear path. Come on, but now that I have learned PHP silently, the path I took is more or less useful for reference.

I don’t need to go into details about the background of PHP. I believe that when everyone chooses a language, it is not based on its background and long history, but more importantly on its practicality. Even a flashy language is The glorious history will eventually decline. Fortunately, PHP has withstood the test, and therefore, it is indeed a language worth learning.

Momo has always grown up listening to the experiences of others. Therefore, based on the experience of his predecessors, Mo Mo has taken many detours and stepped into the right track faster. Here I would like to express my sincere gratitude to those who I will never forget. The seniors who know his name say thank you. In Momo’s eyes, help no matter how big or small, as long as it is help, it will always make Momo’s heart warm. I think the seniors did not help me just to get a thank you from me. , more out of a sense of responsibility and an expectation of silence, so I think that only by learning PHP well can we be worthy of the sweat of our predecessors.

As I said, Mo Mo finally feels a sense of responsibility. Mo Mo doesn’t know how much his experience can help novices, but Mo Mo understands that now is the time to fulfill his responsibilities. It is necessary for me to put myself This experience tells everyone who wants to learn PHP well that only in this way can China's PHP continue to progress and develop and occupy a place in the world.

During this period of silently learning PHP, I feel that the domestic PHP environment is becoming more and more mature, and the standards are gradually improving. The establishment of PHPCHINA marks the formal settlement of a PHP organization directly linked to the official in China. Here’s a belated round of applause!

Okay, let’s get to the point:
Before I talk about my own learning methods, I would like to say something from my heart to those who hope to get useful information from my articles: Silent articles will not be correct. Your study plays a substantial role. Whether you can succeed or not depends on yourself. Perseverance, persistence, and persistence are the only way to success.

Let me first summarize my own process of learning PHP: (1) Be familiar with basic elements of web pages such as HTML/CSS/JS. At the completion stage, you can create a complete web page by yourself and be familiar with element attributes (2) ) Understand the concept and operating mechanism of dynamic languages, and be familiar with PHP syntax (3) Learn how to combine PHP and HTML to complete simple dynamic pages (4) Get in touch with MYSQL and start designing database programs (5) Continue to consolidate and understand most of PHP Commonly used functions, and can understand OOP, MYSQL optimization, and templates (6) to complete a fully functional dynamic site

My route may coincide with many enthusiasts who learn PHP, which can be regarded as A step-by-step learning process, but novices should not think that learning is quite simple after seeing the summary above. Momo Mo has to pour cold water on you here. Nothing is actually simple, even the sesame cakes in the snack bar are not easy to learn at once. It will be done.

Let me explain my learning ideas first

First of all, after understanding the concept of website, it is not difficult to see that any website is composed of web pages, which means that if you want to complete the website, you must first Learn to make web pages, so you must master HTML to lay the foundation for making websites in the future.

I think learning while doing is the most effective way to learn HTML. Of course, this method is also the most effective way to learn PHP.

Any element in HTML must be practiced personally. Only after you understand what element will have what effect, you will remember it deeply. Blindly reading books will definitely not work. I think most novices The reason why concepts are difficult to learn is mostly due to the word "lazy". Laziness is the biggest enemy that hinders progress. Therefore, only by overcoming the habit of laziness can you learn something faster.

Maybe when you are learning PHP, you just want to develop a website as soon as possible, and you will also think about me making a website. Why do you need to learn such trivial things as web pages? It is not difficult to see that there are many novices who have high ambitions but low ambitions. This kind of thinking is undoubtedly building a castle in the air. If you don't build a foundation, how can you get a roof?

OK, mastering the production technology of static web pages is a prerequisite for learning to develop websites. This point will stop here. Because this article is not a tutorial article, it will not provide an in-depth analysis of the technology.

I assume that you can now complete a static page. Of course, whether it is good-looking or ugly is another matter. The silent first webpage is not that good, but no matter how ugly the "child" is, we You can't dislike being a "parent", right? After all, this is our achievement.

Then let’s start learning the concept of dynamic language. Many people may be confused when they first come into contact with dynamic language. Why is this messy thing different when it is displayed on the web page? In fact, this is not a mess. Isn’t the HTML code you write also a bunch of characters? After all, the code is not output directly, but processed. To put it bluntly, HTML passes through the HTML parser, and PHP of course passes through the PHP parser. It is the same as learning HTML. If you want any parser to To accomplish operations, you must use their specialized syntax constructs, so it's no wonder that PHP looks strange.

Understanding PHP is the most difficult threshold for novices to cross, but you should feel lucky that PHP has tried its best to cater to novices. If you have learned other languages, you may feel that PHP is indeed quite good. Simple, but if you have never learned anything before, then bite the bullet and think about it.

You will become familiar with it after reading it three times. This simple truth tells us that even if you can’t understand PHP, you must first become familiar with it. Read it over and over again, and think about it while reading. While typing code according to what it teaches, even if you can't figure out what those codes are for, at least you should get a feel for it.

After a period of struggle, you, the smart one, have obviously gradually become enlightened and slowly understood the concept of programming. Congratulations, you have taken the first step to success.

Understand the concepts of HTML and PHP, then mixed programming of PHP and HTML should not be a problem. During this period, you can let PHP calculate for you how much one plus one equals, and then output it in the browser. Don’t I feel naive, but this is indeed the same as the Apollo moon landing. You typed a small piece of code, but it was a big step forward in your programming journey! Excited? But I have to pour some cold water on you, you are still a rookie.

After being happy for a while, you must continue to work hard. The next step is to learn databases. MYSQL can be regarded as the golden partner of PHP. However, even though that is said, you may also want to eat MYSQL alive, because The rows and rows of stuff made me dizzy.

Dizziness is dizziness, dizziness is dizziness. You can’t bite your tongue while eating and then stop eating, right? Put down your fear and keep working hard. We are here to conquer it, not to be conquered by it. Cheer up, comrade.

After a lot of struggle, you finally understand the concept of database, and what makes you excited is that you can finally connect to the database through PHP. How you learned it during this period, we will not verify. , but it turns out, you already can.

1

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446743.htmlTechArticleI started asking Mo Mo on how to learn PHP. Later, many people came to ask Mo Mo how to learn PHP. No matter Momo is a novice or an experienced player, it seems that he can’t always find a clear clue...
Statement of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

7 PHP Functions I Regret I Didn't Know Before 7 PHP Functions I Regret I Didn't Know Before Nov 13, 2024 am 09:42 AM

If you are an experienced PHP developer, you might have the feeling that you’ve been there and done that already.You have developed a significant number of applications, debugged millions of lines of code, and tweaked a bunch of scripts to achieve op

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

PHP Program to Count Vowels in a String PHP Program to Count Vowels in a String Feb 07, 2025 pm 12:12 PM

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? Apr 03, 2025 am 12:03 AM

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.

See all articles