Home  >  Article  >  Backend Development  >  Talk about how novices learn PHP_PHP tutorial

Talk about how novices learn PHP_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:59:23706browse

There are so many contact information listed at the beginning of the article, which will inevitably make everyone feel a bit like AD, but there is no doubt that Momo does have a little desire for expression^_^, although sometimes people will call her mother-in-law if she is too detailed. But fortunately, this kind of meticulousness is quite beneficial to programming!
It started when Momo Mo asked 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, it seems that Mo Mo can’t find a clear clue. However, , since 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 practicability, a flashy language. Even the glorious history will eventually decline. Fortunately, PHP has withstood the test, and therefore, it is indeed a language worth learning.
Mo Mo has always grown up listening to other people’s experiences. 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 gratitude to those whose names I don’t even know. My seniors 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 didn’t help me just to get a thank you from me. More It is out of a sense of responsibility and silent expectation, 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 tell my experience For all those who want to learn PHP well, 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 establishment of a PHP organization directly linked to the official in China. I would like to dedicate this to you. Belated applause!
Okay, let’s get to the point:
Before I talk about my own learning style, I would like to say something from my heart to those who hope to get useful information from my article:
Silent article It will not play a substantial role in your learning. Whether you can succeed or not depends on yourself. Persistence, persistence, and persistence is 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 understand the elements Attributes have reached a familiarity level
(2) Understand the concept and operation mechanism of dynamic language, and be familiar with PHP syntax
(3) Learn how to combine PHP and HTML to complete a simple dynamic page
(4) Get in touch with MYSQL, Start designing database programs
(5) Continue to consolidate, understand most of the common functions of PHP, and understand OOP, MYSQL optimization, and templates
(6) Complete a fully functional dynamic site

My set of routes may coincide with many enthusiasts who learn PHP. This can be regarded as a step-by-step learning process. However, novices should not think that learning is quite simple after seeing the summary above. I have to pour some cold water on you, Nothing is actually simple, even the sesame cakes in the snack bar are not made at once.
Let me first explain my learning ideas.
First of all, after understanding the concept of website, it is not difficult to see that any website is composed of web pages. In other words, if you want to complete a website, you must first learn to make web pages , so you must master HTML. Only in this way can we lay the foundation for future website production.
In learning HTML, I think learning while doing is the most effective way. Of course, this method is also the most effective way to learn PHP.
Every element in HTML must be practiced personally. Only after understanding what elements will have what effect will you be able to remember them deeply, and you will definitely be able to read books blindly. It’s not possible. I think the reason why most novices find concepts difficult to learn is mostly due to the word “lazy”. Laziness is the biggest enemy that prevents 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 of 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 technology of making static web pages is a prerequisite for learning to develop websites . That’s it for now. Because this article is not a tutorial article, there will be no in-depth analysis of the technology. .
I assume that you can now complete a static page. Of course, whether it looks good or not is another matter. The first webpage of Momo is not that good, but no matter how ugly the "child" is, let's make it "father" You can’t dislike Mom, 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 complete the operation, you must use their special syntax structure, so it is not surprising 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, maybe You will feel that PHP is indeed quite simple, but if you have never learned anything before, then bite the bullet and think about it.
You will naturally 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, read it over and over again, and read it at the same time While thinking about it, code according to what it teaches. Even if you don't know 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.
Once you understand the concepts of HTML and PHP, 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 feel naive. This is indeed the same as the Apollo moon landing. You are typing a small piece of code, but it is 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 you have been happy for a while, you must continue to work hard. The next step is to learn the database. 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 this row and column The stuff just makes me dizzy.
Dizziness is dizziness, and 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 it, but the fact Prove that you can do it.
If you have learned PHP and database, you are undoubtedly holding MOTOLOLA in your left hand and NOKIA in your right hand. How chic and chic, haha, I finally learned it, but maybe at this time, someone will inadvertently tap me on the shoulder. You say: Brother, don’t be too happy, you are still a rookie, you are still a long way from learning!
When you work hard and learn to successfully insert, delete, and update data using PHP, it is obvious that you are just around the corner from success.
At this time you may be in this state:
Do you know HTML? Yes, I can edit several web pages with large tables and 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 will insert and delete my information in the database
Then, what should you do next? I think if you give your skills a try, you’ll probably be fine. Then I’ll give you a task and make a guestbook. This is comparable to HELLO WORLD! ^_^, it is also the first hurdle faced by novices.
After a while, you finally learned to
insert the form data into the database and then display it . It should be said that the prototype of a program has been born.
However, you may look at this forum, that CMS, and that CRM. When will I write one?
Don’t worry, it can be said that your horse stance is almost done, and it’s time to start practicing the postures. If possible, use a pen or print a simple PHP manual on your body, and touch it from time to time Come out and take a look, remember, don’t miss it even if you go to WC (^2^).
If you have the conditions, buy this book and read it. "PHP+MYSQL WEB Development (Third Edition)" is known as the Bible, (maybe a good choice) (Disclaimer: The author did not give me any benefits, and neither did I Book supporter, from a long distance away, I have never even met his brother before saying this -_-)
After I have consolidated my knowledge and become familiar with the essentials of PHP and MYSQL development, I will look back at what you wrote. That guestbook, you may wonder if it was really written by you? Of course, if there is a ghost in the house, maybe it was written by it -_-
At this time, your guestbook should be registered and paginated. Function, and if you are stronger, the UI (user interface) can also be enhanced. After completion, do you feel a special sense of accomplishment? Anyway, we have written a dynamic website program and put it on our own website. Let's have fun, let your friends take a look, look at how good my writing is, and then promote it online
A few days later, you open the guestbook, eh? Wow, there are so many pages popping up at once! Obviously, your guestbook did not take security precautions and someone used JS code to fool you a little. I sympathize with your feelings at this time, but there is no other way. Keep working hard. !
You worked hard, got familiar with the security issues, and then designed some programs, and it feels good.
Then, you have learned it? NO, NO, NO, it’s still early. Have you never touched OOP?
Well, learn! After learning this, you have learned to generate static web pages, and now you should be exposed to XML. Well, XML I understand, so you also need to get involved with AJAX, right? AJAX is over...
All in all, you will never find that you have learned everything, and some real strong people will always come up with new things. Throw it to you, you will fall behind if you don’t learn. It also confirms the experience of predecessors. It is true that there is no end to learning I think you should be familiar with it through my YY. Some learning processes, maybe my process and yours have some solutions, but no matter what, they lead to the same goal. I write so much just to give everyone a chance to learn from it. As for whether it is good or bad, I dare not guarantee it. ^0^
After reading it, you find that it is so wordy and of no use to me at all. I know how to learn, but I want to learn how to learn faster. It can be done quickly in one week, ah no, it can be done quickly in 24 hours. I’ll keep silent to you. Have you?
I...I haven't, but I'm pretty sure I'll put you in the hospital within 2 minutes -_-

Never expect quick results when learning something This tells you a way, but without the hard work, it is useless But one thing I can guarantee you is that if you learn PHP, you will definitely learn other languages. Quick learning, and vice versa, if you have learned other languages ​​before, then learning PHP will definitely be faster.
But grammar is easy to learn, but how to use grammar to achieve everyone has their own way, almost everyone has their own merits. However
It is absolutely beneficial to learn from other people's successful codes. Therefore, looking at those classic codes that have been refined over time is the best way to advance. Having said so much, I just want to say:
Learning PHP requires not only mastering the method, but also sweating . I don’t want to see people who give up midway. Believe in yourself and your own choice. , but also to believe in your own abilities. If you want to give up and be more violent, just slap yourself in the mouth and yell: Others can do it, why can't I? (Doesn’t it sound like Coach Yama? It’s true that Mo Mo has watched too many movies and it will hurt if he slaps his mouth. You just need to understand this truth.) Another thing I want to remind you is,
Resist temptation, ASP The comparison of /PHP/JSP/.NET may leave you at a loss . You may have learned half of PHP and started to think about C#, or some people say that JAVA is very strong. At this time, you must not be swayed, even if you really If you want to learn, you must also learn PHP. Then learn again, It is the most undesirable thing to change your mind when you think differently. This is the principle of breaking the corn with a bear. If you often give up midway, you will gain nothing and waste a lot of time and experience. The gain outweighs the loss. The most important thing is , you will be looked down upon by others, and no one will like to make friends with people who have different ideas, because such people are too restless and unreliable. Therefore, you must force yourself to accomplish your goals, even if it may be uncomfortable. Persistence, this is how perseverance is developed.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/317400.htmlTechArticleThere are so many contact information listed at the beginning of the article, which will inevitably make everyone feel a bit AD-like, but there is no doubt about it. Yes, Momo does have a little bit of desire for expression^_^, although sometimes it’s too...

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