Home> headlines> body text

How do novices learn php?

PHP中文网
Release: 2017-10-27 10:03:50
Original
8293 people have browsed it

I started by asking others how to learn PHP. Later, many people asked how to learn PHP. Whether they are novices or veterans, they always seem to be unable to find a clear clue. However, now that I have learned If you know PHP, then the path I took is more or less useful for reference.

How do novices learn php?

The background of PHP goes without saying. I believe that when you choose a language, it is not based on its background and long history, but more importantly on its practicality. Even a flashy language has a glorious history. It is on the verge of decline. Fortunately, PHP has withstood the test, and therefore, it is indeed a language worth learning.
I have always grown up listening to the experiences of others, and therefore I have taken many detours in the experience of my seniors and stepped into the right track faster. I would like to express my gratitude to those seniors whose names I don’t even know. Thank you. In my eyes, no matter how big or small the help is, as long as it is help, it will always make my 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 right expectations, so I think that only by learning PHP well can we be worthy of the sweat of our predecessors.
As I said, I finally feel a sense of responsibility. I don’t know how much my experience can help novices, but I understand that now it’s time to fulfill my responsibilities. It is necessary for me to tell all my experiences about my experience. Those who 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 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 that the PHP organization directly linked to the official has officially settled in China. I would like to offer my late 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:
’s article will not be useful to you. Learning plays a substantial role. Whether you can succeed or not depends on your own efforts. Perseverance, persistence, and persistence are the only way to success.
I will first summarize my own process of learning PHP:
(1) Familiar with the basic elements of web pages such asHTML/CSS/JS. At the completion stage, you can create a complete web page by yourself. Attributes have reached a level of familiarity
(2) Understand the concept and operation mechanism of dynamic languages, and be familiar with PHP syntax
(3)Learn how to combine PHP and HTML to complete a simple dynamic page
(4)Contact## MYSQL ## (6) Complete a full -featured dynamic siteMy set of lines may coincide with many enthusiasts learning PHP. This is also a gradual learning process. I thought learning was quite simple, but I have to pour some cold water on you here. Nothing is actually simple, even the sesame cakes in the snack bar cannot be 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. Therefore, you must master HTML to lay the foundation for future website creation. Base.When learning HTML, I think learning by doing is the most effective way. Of course, this method is also the most effective way for learning PHP.
Any element in HTML must be practiced personally. Only after you understand what element will have what effect, you will remember it deeply, and blindly reading books will definitely not work. I think the reason why most novices feel that Concepts are difficult to learn, mostly because of 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 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 not be discussed here, because this article is not a tutorial article, so there will be no in-depth analysis of the technology.
I assume that you can now complete a static page. Of course, making it good-looking or ugly is another matter. The first webpage is not easy to see, but no matter how ugly the "child" is, let's be "parents" "You can't dislike it, right?" After all, this is our achievement.
So 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 accomplish operations, you must use their specialized syntax constructs, so it's no wonder that PHP looks strange.
The understanding of 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 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, think about it while reading, and follow it When it comes to coding, even if you don't know what the 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.
After 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 made 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 some struggle, you finally understand the concept of database, and what makes you excited is that you can finallyconnect to the databasethrough PHP. How did you learn it during this period? We don’t know I went to take the exam, but it turns out that you can already 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 cool and unrestrained should you be? 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 and there is still a long way to go before you learn!
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.
You may be in this state at this time:
Do you know HTML? Yes, I can compile 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.
It took a while, but you finally learned to insert the form datainto the datalibrary, and then displayed 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 postures. If possible, use a pen or print a simplePHP manualIf you have it on your body, take it out and look at it from time to time. Remember, don’t let it go 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 holder, from a long way away, I have never even seen his brother’s face -_-)
After you have consolidated your knowledge and become familiar with the essentials of PHP and MYSQL development, and then look back at the guestbook you wrote, 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 have registration andpaging functions, and if you are stronger, the UI (User interface) can also be enhanced. After completion, do you feel a unique sense of accomplishment? No matter what, we have written a dynamic website program. Let's put it on our own website and let our good friends take a look. Hey, let's see how great our writing is, and then we can promote it online.
You will open the guestbook again in a few days, huh? Wow, so many pages pop 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 have worked hard, become familiar with security issues, and then designed some programs, which feels pretty good.
So next, is this considered learned? NO, NO, NO, it's still early. You haven't come across OOP or anything like that yet, right? What about templates?
Well, learn! Keep learning and learning. After learning this, you have learned how to generate static web pages. Now you should be exposed to XML. Well, you also understand XML, so you also need to be exposed to AJAX, right? AJAX is over...and then...
All in all, you will never find that you have learned everything. Some real strong people will always come up with new things to throw to you. If you don't learn, you will fall behind, which also confirms the experience of the predecessors. Experience, indeed, there is no end to learning!
I think that through my YY, you should also be familiar with some learning processes. Maybe my process has some ways to go with yours, but no matter what, it is the same goal. I write so much just to give everyone a reference. As for the opportunity, I don’t dare to guarantee whether it is good or not. ^0^
After reading it, you find that it is so wordy and of no use to me. I know how to learn, but I want to do it faster. It’s a quick study in one week, ah no, a 24-hour quick study, have you ever?
I...I didn’t, but I’m pretty sure I’ll put you in the hospital within 2 minutes -_-
When you learn something, you should never expect a quick fix. I’ve told you a way. But without the effort part, it is all in vain.
But one thing I can guarantee you is that if you learn PHP, you will definitely learn other languages quickly, and conversely, if you have learned other languages before, then you will definitely learn PHP quickly.
But grammar is easy to learn, but everyone has their own way of using grammar to achieve it, almost everyone has their own strengths and weaknesses. However, it is definitely beneficial to learn from other people's successful codes. Therefore, looking at 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, your choice, and even more. Ability, 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? (Does it sound like Coach Yama? It’s true that after watching too many movies, it will hurt if you slap your mouth. You just need to understand this truth.)
Another thing I want to remind you is to resist temptation, ASP/PHP/JSP /.NET may leave you at a loss. You may have learned half of PHP and are starting to think about C# again, or someone may say that JAVA is very powerful. At this time, you must not be swayed. Even if you really want to learn it, you have to learn it. PHP. Then learn again. The most undesirable thing is to change your mind when you see something different. This is the principle of being a loser and breaking the corn. 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 that you will be looked down upon by others. , no one likes to make friends with people who have different ideas, because such people are too restless and unreliable. Therefore, you must force yourself to achieve your goals, even if it may be uncomfortable, you must persevere. This is how perseverance is exercised. from.

Related labels:
source:php.cn
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!