Home >headlines >My PHP learning path, a PHP master's learning insights

My PHP learning path, a PHP master's learning insights

PHPz
PHPzOriginal
2017-05-02 11:12:4411905browse

Thank you to phpchinese.com for providing me with a php learning and sharing platform. First of all, I want to thank phpchinese.com, because my earliest exposure to and learning of php was from phpchinese.com, and I gradually became the technical director of a well-known IT company! In order to give back, I share my personal learning experience and insights with those PHP beginners. The article is a bit long. I hope PHP beginners can read the article quietly. It will definitely be helpful to you!

My PHP learning path, a PHP masters learning insights

##The following is the text:

From I started by asking others how to learn PHP. Later, many people came to ask me how to learn PHP. Whether they are newbies or veterans, they always seem to be unable to figure out a clear path. However, now that I have learned PHP , then the path I took is more or less useful for reference.

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

I have always grown up listening to other people’s experiences, and therefore the experience of my predecessors has helped me avoid many detours and get on the right track faster. I would like to express my sincere gratitude to those who I will never give up. The seniors who know his name say 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 the seniors did not help me just to get a thank you from me. , more out of a sense of responsibility and expectations for me, so I think that only by learning PHP well can I be worthy of the sweat of my 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, and it is necessary for me to put myself My experience tells the netizens of php Chinese website and 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 the period when I was learning PHP, I felt that the domestic PHP environment was becoming more and more mature. Many websites served PHP beginners for free, such as China’s largest PHP free learning website PHP Chinese Network (www. php.cn) has been newly revised, adding a large number of free high-quality

php video tutorials, and I would like to express my belated 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: My articles will not be of any substance to your learning. The role of sex, 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, and you can create a complete web page by yourself at the completion stage , Become familiar with element attributes

(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 and 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

php self-study route may coincide with many enthusiasts who learn PHP. This can also be regarded as a step-by-step process. The learning process, but novices should not read the above summary and think that learning is quite simple. 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. of.

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 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 effect an element will have, you will remember it deeply. Blindly reading books will definitely not work. I think the reason why most novices find concepts difficult to learn is , mostly one word "lazy", laziness is the biggest enemy that prevents progress, so 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, and it does not cover the technology. An in-depth analysis has been carried out. If you are interested, you can go to the php Chinese website Free HTML Video Tutorial to learn!

I assume that you can now complete a static page. Of course, whether it looks good or not is another matter. My first webpage was not easy to see either. , but no matter how ugly the "child" is, we as "parents" can't despise 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 worked hard for novices to the maximum extent. If you learn After using other languages, you may feel that PHP is indeed quite simple, but if you have never learned anything before, then Amitabha, bite the bullet and think about it. There is a php self-study guide on the php Chinese website, which feels good , very helpful for confused PHP beginners, recommended to everyone.

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. You can read it firstphp Online Manual, read it, read it over and over again, think about it while reading it, and type 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 it. Feel.

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 a step forward. The first step to success.

If you 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 that one plus one equals A few, and then output it in the browser. Don't feel naive. 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.

If you are 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 also Maybe I want to eat MYSQL alive, because the rows and columns make me dizzy. (Free mysql video tutorial)

Dizziness is dizziness, and dizziness is dizziness. You can’t bite your tongue while eating and then stop eating. Isn’t it? 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 finally connect to the database through PHP. During this period, you We won't go into proving how you learned it, but facts have proven that you can already do it. If you have learned PHP and databases, you will undoubtedly be holding MOTOLOLA in your left hand and NOKIA in your right hand. You should be more chic and chic. Haha, I finally learned it. But maybe at this time, someone will inadvertently pat you on the shoulder and 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. So, what do 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 data into the database and then displayed it. It should be said that the prototype of a program has been born. However, you can 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 take it out 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 I am not a book trustee. Even across the distance, I haven't even seen him face to face -_-) Of course, if you don't have the conditions, you should continue to watch the tutorials and videos on the PHP Chinese website, which is also very good, but there are some people! I have to hold the book to feel at ease

After I have consolidated my knowledge and become familiar with the essentials of PHP and MYSQL development, I will 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 message book should have registration and paging functions, and if you If it is 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, let's play with it on our own website, and it will be good. Friends, come and take a look, hey, let’s see how great our writing is, and then we’ll promote it online. A few days later, you’ll open the guestbook. Wow, there will be so many pages popping up at once. It’s obvious that your guestbook wasn’t done! Good safety precautions. I was slightly fooled by someone using JS code. 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, and it feels good. So, now you have learned it? NO, NO, NO, it’s still early, you haven’t touched OOP yet. What about templates? Well, keep learning! After learning this, you have learned to generate static web pages. Now you should understand XML, so AJAX You have to get in touch with it, right? AJAX is over.... Then...

##In short, you will never find that you have learned everything, some real Strong people will always come up with new things to throw at you. If you don’t learn, you will fall behind. This also confirms the experience of predecessors. 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 are different paths 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^ See After finishing it, you find that it is of no use to me at all because it is so wordy. I know how to learn, but I want to learn how to learn faster. A one-week crash course, ah no, a 24-hour crash course. Do you have it? I...I don't have it, but I'm pretty sure I'll put you in the hospital within 2 minutes -_-


Learn something, never do it The saying that there is quick success in delusion tells you a way, but without hard work, it is useless. But one thing I can guarantee you is that if you learn PHP, you will definitely learn other languages ​​quickly, and vice versa. The same applies here. 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 his own way. 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.

After talking 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 then yell: Others can do it, why can't I? (Does it sound like Coach Yama? I have indeed watched too many movies. It will hurt if you slap your mouth. You just need to understand this truth.)

In addition, I want I urge you to resist the temptation. The comparison of ASP/PHP/JSP/.NET may make you confused. 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 will definitely Don't waver, even if you really want to learn, you have to learn 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 recommendations]

1. What can you do if you learn PHP well? Who is suitable for learning PHP?

2. What are the future development prospects of php? Is there any future for learning PHP?

3. Is php difficult to learn? How long does it take to learn PHP from beginner to proficient?

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