SoFunction
Updated on 2025-04-08

Talk about how newbies learn PHP

There are so many contact information listed at the beginning of the article, which inevitably makes everyone feel a bit AD, but it is not doubtful that Momo does have a little desire to express ^_^. Although sometimes people will be called mother-in-law when they are too meticulous, fortunately this kind ofDetailedness is quite beneficial for programming
Starting from asking others how to learn PHP by myself, many people came to ask how to learn PHP by Momo. Whether Momo is a novice or an old bird, it seems that I can't figure out a clear context. However, since Momo has learned PHP, the path I took is more or less reference-oriented.
I'm afraid there is no need to say anything about the background of PHP. I believe that everyone chooses a language not to look at its background and long history, but more importantly, to look at its background.PracticalityEven the glittering language is a glorious language that is always in decline, and it is gratifying that PHP has withstood the test, so it is indeed a kind ofWorth learninglanguage.
Momo has always been growing up by obeying other people's experiences, and therefore, in the experience of his predecessors, he has avoided many detours and entered the formalism faster. I would like to say thank you to those seniors who I don't know their names. In Momo's eyes, help is no matter how big or small. As long as it is help, it will always make Momo's heart warm. I think that the seniors helped me not to get a thank you from me, but more out of a sense of responsibility and expectations for Momo. So I think that only by learning PHP can you be worthy of the sweat of the predecessors.
As I said, Momo finally felt a sense of responsibility. Momo didn't know how much his experience could help novices, but Momo understood that it was time to fulfill his responsibilities. It was necessary for me to tell my experience to all those who hoped to learn PHP well. Only in this way can China's PHP continue to improve, develop continuously, and occupy a place in the world.
During this period of silent study of PHP, I felt that the domestic PHP environment is becoming more and more mature and the standards are gradually being improved. The establishment of PHPCHINA marks the official settlement of the PHP organization directly linked to the official in China. I would like to offer my late applause here!
OK, get to the point:
I want to say something to those who expect to get useful information from my articles before telling my learning style:
    A silent article will not play a substantial role in your study. Whether you can succeed depends on your own.Persist, persevere, persevere, is to enter the only way to succeed.
Let me first summarize the process of learning PHP by myself:
        (1) Familiar with basic elements of web pages such as HTML/CSS/JS. During the completion stage, you can create a complete web page by yourself and achieve familiarity with element attributes.
(2) Understand the concepts, operation mechanisms of dynamic languages, and be familiar with PHP syntax
(3) Learn how to combine PHP with HTML to complete a simple dynamic page
(4) Contact MYSQL and start designing database programs
(5) Continuously consolidate, understand most commonly used functions of PHP, and understand OOP, MYSQL optimization, and templates
(6) Complete a full-featured dynamic site

My route may coincide with many PHP enthusiasts, which is also consideredA step-by-step learning processHowever, novices should not think that learning is quite simple when they see the summary above. I have to pour cold water on you here.Nothing is actually simpleEven the snack cakes are not made in a short time.
Let me explain my learning ideas first.
First of all, it is not difficult to see after understanding the concept of a website that any website is composed of web pages, that is,If you want to complete a website, you must first learn to make web pages, so you must master HTML to lay the foundation for future website production.
In learning HTML, I want toLearning and doing is the most effective wayOf course, this method is also the most effective for learning PHP.
    Any element in HTML must be practiced in person,onlyUnderstand what elements will have the effectOnly after that will you remember it deeply, but blindly reading books is absolutely not possible. I think the reason why most novices think that concepts are difficult to learn is that most of them are just one word "lazy".Laziness is the biggest enemy that prevents progress, so you can learn something faster by overcoming the habit of laziness.
Maybe when you are learning PHP, you just want to develop a website as soon as possible, and you will also want me to build a website. Why do you need to learn some pediatrics such as web pages? It's not difficult to see,There are many newbies with high expectations and low skills, This kind of thinking is undoubtedly to build a tower in the air. If you don’t build a foundation, where will the roof come from?
    OK,Mastering the technology of static web page production is a prerequisite for learning to develop a website, That’s all, because this article is not a tutorial article, so there is no in-depth analysis of the technology.
I assume you can complete a static page at present. Of course, it is another way to do it well and ugly. The first web page in silence is not easy to see, but no matter how ugly the "child" is, we should not dislike it as "parents"? This is our result after all.
Then let’s start learning the concept of dynamic language. As soon as we come into contact with dynamic language, many people may be confused. Why is this messy thing a different matter when it is displayed on the web page? Actually, this is not a mess. Isn’t the HTML code you wrote also a bunch of characters? After all, the code is not used as direct output, but is processed. To put it bluntly, HTML passes through HTML parser, and PHP is of course through PHP parser. The same principle as learning HTML. If you want any parser to complete the operation,They must be used for syntax structures, so it is not surprising that PHP looks strange.
    The understanding of PHP is the most difficult threshold for novices to overcome, but you should feel lucky that PHP has worked hard for novices at its greatest limit., If you have learned other languages, you may think that PHP is indeed quite simple, but if you have not learned anything before, then Amitabha, just think about it.
    After three times, I will naturally become familiar with the book, This simple truth tells us that even if you can't understand PHP, you must first get familiar with it, read it, read it over and over again, while thinking about it, and typing the code according to what it teaches. Even if you can't figure out what the code is for, at least you should look for the feeling.
After a period of struggle, you, who is smart, have obviously gradually become enlightened and slowly understand the concept of programming. So congratulations, you have taken the first step to success.
If you understand the concept of HTML and PHP, then mixed programming of PHP and HTML should not be a problem. During this period, you can completely let PHP calculate for you. One plus one equals a few, and then output it in the browser. Don’t think it’s naive. This is indeed like Apollo’s moon landing. You are typing a small piece of code, but it has taken a big step towards your programming path! Excited? But I have to pour some cold water on you, and you are still a rookie.
I'll be happy for a while and I have to continue working hard. The next step is to learn the database. MYSQL can be regarded as PHP's golden partner. However, even though that's the case, you may want to eat MYSQL alive, because the things in this row and column make you dizzy.
It’s dizzy, dizzy, dizzy, it’s impossible for you to bite your tongue when you eat and stop eating, right? Let go of your fears and keep working hard.We are here to conquer it, not to be conquered by it, get excited comrade.
After a fight, you finally understand the concept of database, and what makes you excited is that you can finally connect to the database through PHP. We will not verify how you learned it during this period, but it turns out that you can do it.
You who have learned PHP and database are undoubtedly holding MOTOLOLA in your left hand and NOKIA in your right hand. You should be so cool and so cool. Haha, I finally learned it, but at this time, someone will accidentally pat your shoulder and say to you: Brother, don’t be too happy too early. You are still a rookie, and you are still a big short of learning!
When you work hard to learn to successfully insert, delete and update data with PHP, you are obviously just around the corner.
You may be in this state at this time:
Do you know how to HTML? Yes, I can compile several large tables and board pages!
Do you know how to PHP? Yes, I will write the one plus one operation in the function and call it!
Do you know MYSQL? Yes, I will insert and delete my information in the database
So, what should you do next? I think it’s probably okay to try your skills. So I’ll give you a task and make a message book. This is comparable to HELLO WORLD! ^_^, the first hurdle facing both beginners.
It took a while and you finally learnedInsert the form data into the database and then display it, it should be said that the prototype of a program has been born.
But, you might look at the East and the West, this forum, that CMS, and that CRM, when will I write one?
Don’t worry, you can say that your horse stance is almost done, and it’s time to start practicing posture. If you have the conditions, use a pen or print a simple PHP manual on your body, and take it out from time to time. Remember, you can’t let it go to WC (^2^).
If you have any conditions, buy this book and read it. "PHP+MYSQL WEB Development (Third Edition)" is known as the Bible level (maybe a good choice (statement: The author did not give me any benefits, and I am not a book entrusted. From a distance, I have never seen his brother before-_-)
After consolidating your knowledge and familiarizing yourself with the key points of PHP and MYSQL development, then look back at the message book you wrote. Maybe you may doubt that it was really written by you? Of course, if there are ghosts in the house, maybe it was written -_-
At this time, your message should have been added with the registration and paging functions. If you are stronger, the UI (user interface) can also be strengthened. After completion, do you feel that it is unique to achievement? No matter what, we have written a dynamic website program and put it on our own website to have fun and let our good friends come and see, hey, see how great we write, and then promote it online.
You will open the message book in a few days, hey? Wow, N many pages pop up! Obviously, your message book does notTake good safety precautions, I was fooled by someone using JS code. I sympathize with your feelings at this time, but there is no other way, keep working hard!
You worked hard, became familiar with security issues, and then designed some programs, and it felt pretty good.
Then, then, has this been learned? NO, NO, NO, it's still early, you haven't encountered OOP or something like that yet, right? Where is the template?
Hum, learn! Learn and learn more. After learning these, you have learned to generate static web pages. Now you should get in touch with XML. Well, XML has also been understood, so you have to get in touch with AJAX, right? AJAX is finished...and then...
In short, you will never find that you have learned everything. Some real strong men will always create new things to throw them to you. If you don’t learn, you will fall behind. It also confirms the experience of your predecessors. It is indeedLearning endlesslyah!
I think through my YY, you should also be familiar with some learning process. Maybe my process is with yours, but no matter what, it is the same destination. I wrote so much, but it is just an opportunity to learn from you. As for good or bad, I don’t dare to make a promise^0^
After reading it, you found that so much talkative is useless to me at all. I know how to learn it, but I think how to learn it faster, a weekly quick success, no, 24-hour quick success, are you silent?
I...I don't have it, but I'm sure I'll beat you into the hospital within 2 minutes-_-
    Learn things, never imagine that there is a quick success, I told you a way, but if you lack hard work, it will be useless.
But one thing I can guarantee you is that if you learn PHP, then you will definitely be quick to learn other languages. Conversely, if you have learned other languages ​​before, then you will definitely learn PHP quickly.
However, grammar is easy to learn, but how to use grammar to implement it has its own way, and almost everyone has their own advantages. HoweverIt is absolutely beneficial or harmless to learn from other people's successful codes., Therefore, looking at more classic codes that have been refined and refined is the best way to advance.
After talking so much, I just want to say:Learning PHP not only requires mastering the methods, but more about sweating, I don’t want to see people who give up in the middle, believe in themselves, their choices, and even more believe in their abilities. If I want to give up and be more violent, I will slap myself in the mouth and then yell: Others can do it, why can’t I? (Is it a bit like Coach Yan Luo? Momo has indeed watched too many movies, and it will hurt if you twitch your mouth. You actually understand this principle.)
Also, I would like to remind you,Resist the temptation, the ASP/PHP/JSP/.NET comparison may make you feel at a loss, you may have learned PHP halfway and started to play C# again, or some people say that JAVA is very strong, you must not be shaken at this time. Even if you really want to learn, you have to learn PHP. Then learn againIt is the most undesirable to see strange thingsThis is the reason for a bear to break corn. If you often give up halfway, you will only get nothing, and waste a lot of time and experience. The gain is not worth the loss. The most important thing is that you will be looked down upon by others. No one will like to make friends with people who are dissatisfied with others, because such people are too restless and unreliable. Therefore, you must force yourself to achieve your goals. Even if it may be uncomfortable, you have to persist. This is how perseverance is trained.