


Let’s talk about how novices learn PHP^_^
Author: Momo
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 that little bit of knowledge Desire for expression ^_^, although sometimes people call me a mother-in-law if I am too meticulous, 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 Momo has learned PHP, 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. No matter how glorious the history is, it will eventually decline. Fortunately, PHP has withstood the test. 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. You can complete the stage by yourself Make a complete web page and be 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 with HTML Simple dynamic page
(4) Contact MYSQL and start designdatabase program
(5) Constantly consolidate, Understand most of the commonly used PHP functions , and understand OOP, MYSQL optimization, and templates
(6) Complete a fully functional dynamic site
My route may be similar to Many enthusiasts who learn PHP coincidentally. This can be regarded as a step-by-step learning process. However, novices should not think that learning is quite simple after seeing the above summary. I have to give you a little advice here. Cold water, 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 want me to build 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, and it does not cover the technology. Conducted in-depth analysis.
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 wrote also a bunch of characters ? After all, the code is not directly output, but is 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. For any parser to complete its operation, it 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, 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.
Understand the concepts of HTML and PHP, then mixed programming of PHP and HTML should not be a problem. In the meantime, you can let PHP calculate for you how much one plus one equals, and then use the browser Don’t feel naive about output. This is indeed the same as the Apollo moon landing. What you type is 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 period of time, you must continue to work hard. The next step is to learn the data database. MYSQL can be regarded as the golden partner of PHP. However, even so, you You may also want to eat MYSQL alive, because the rows and columns of this stuff make you 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.
It took a while, but you finally learned to insert the data from the form into the database, and then displayed it . It should be said that the prototype of a program has been born.
But you may look here and there, this editor 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 way away, I have never even met his brother in person -_-)
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. You haven’t touched OOP yet?
Well, learn! After learning this, you have learned to generate static web pages. Now you should be exposed to XML. Well, XML I also understand, then AJAX you have to get in touch with it, right? AJAX is over... and then...
All in all, you will never find that you have learned it all, some real strong people They will come up with new things and throw them at you. If you don’t learn, you will fall behind. It also confirms the experience of the predecessors. It is true that there is no end to learning I want to pass my YY, You should also be roughly familiar with some learning processes. Maybe my process has some solutions to yours, 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 don’t dare to say so. Guaranteed ^0^
After reading it, you will find that it is so wordy and of no use to me. I know how to learn, but I want to learn how to learn faster. It can be done quickly in one week, ah no, 24 hours. Do you know the quick thing?
I...I don't, but I'm sure I'll put you in the hospital within 2 minutes -_-
Learn something , Never expect quick success , I told you a way, but without the hard work, it is useless But one thing I can guarantee you is that if you learn PHP, then. Learning other languages will definitely be quick, and vice versa. If you have learned other languages before, then learning PHP will definitely be quick.
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 are absolutely Don't waver, even if you really want to learn, you have to learn PHP. Then learn again, It is the most undesirable to change your mind when you think differently, this is the principle of being a bear 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 , 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.
Having said so much, you may find me annoying, but Momo belongs to the kind of person who is usually very silent. Once he enters the state, he becomes very excited. I want to express what I think as much as possible. I can express it, but unfortunately my writing skills are limited, so the effect may not be satisfactory, but I feel that after sharing my experience, I feel very relaxed and relieved.
. Instead, they sigh pessimistically and only hope that those people will wake up soon. , Only when everyone works hard can we make progress, and feeling inferior to ourselves will only make things worse. |

雾锁王国是一款开放世界的游戏,玩家可以扮演火焰之子进行生存和探索。游戏融合了动作RPG挑战的特色娱乐,为玩家带来无尽的惊喜和欢乐。在游戏中,玩家可以探索资源、环境和武器等内容。对于一些新手玩家,可能会对如何上手游戏感到好奇。在这期的介绍和分享中,我们将为大家提供一些相关的入门指南。雾锁王国新手入门技巧被瘴气笼罩区域的危险等级不同在探索的过程中会逐渐解锁地图的新区域,并且能看到被瘴气笼罩区域的位置。地图上会以两种颜色来区分,蓝色区域是可以短时间进入的,根据角色能力等级高低,可停留的时间也会有所区别

锚点降临是一款拥有高画质美少女二次元主题的3D回合卡牌游戏,提供了丰富角色的精彩组合可供玩家来探索和体验,拥有很多精品阵容的强力搭配,新人玩家也是好奇新手池有哪些强力角色推荐,下面来看看新手十连金的选择参考!锚点降临新手池强力角色推荐第一个十连选艾莉丝,她主要是一个单体雷系爆发角色,单体输出非常爆炸的,对新人的体验也会是非常的友好的,所以十分推荐选取。10抽必金建议选择“艾莉丝”+“羚角”的组合,艾莉丝是最值得选的金皮雷属性输出角色,比新手卡池中的另外2个角色要强得不是一星半点。艾莉丝可以通过特

PyCharm新手必备技能:掌握批量缩进的使用方法,需要具体代码示例概述:PyCharm是一款功能强大的Python集成开发环境(IDE),它提供了许多实用的工具和功能,帮助开发者提高效率。在日常的编码过程中,我们经常需要对代码进行缩进,保持代码的格式整齐美观。而PyCharm提供的批量缩进功能可以帮助我们快速对代码进行批量缩进,提高编码效率。本文将探讨Py

上古王冠是一款以西方魔幻冒险为背景,高品质有策略的卡牌手游。游戏内秘境探险、遗迹大冒险、全民冠军赛等特色玩法等你来体验。那么对于新手玩家来说,想要快速上手这个游戏当然少不了新手攻略了,今天小编就给大家带来其相关的攻略,一起看看吧。上古王冠新手攻略玩法一览一、开区流派:1.攒钻流:一切以攒钻为主,出村后再发力。除了主要的神兵、三个飞轮活动等需要花钻,其他一概不管,主打一个摆烂,英雄挑战不必理会,能打多少就多少,不强求。优点:只需摆烂攒钻,出村后能有钻石快速接入最新活动,拿新系列硬件英雄,钻石断档概

C语言和C++:哪个更适合编程新手在现代科技高速发展的时代,学习编程已经成为一个越来越受欢迎的选择,无论是作为职业发展的一部分,还是作为提高逻辑思维能力的方式。而在众多编程语言中,C语言和C++都是非常经典且具有代表性的语言,许多人对于如何选择C语言还是C++来作为入门编程语言存在疑惑。那么,究竟是C语言更适合编程新手,还是C++更适合呢?需要具体代码示例来

幻兽帕鲁是一款开放世界生存游戏,支持多人联机。游戏中有丰富的收集生物玩法,玩家可以进行战斗、建造和生存等多种探索。对于新手玩家来说,掌握游戏的操作技巧和玩法内容是很重要的。下面是一些新手攻略技巧供参考。1.学习基本操作:在开始游戏之前,建议先学习游戏的基本操作,包括移动、攻击、采集等。这样可以更好地掌握角色的操作。2.探索世界:幻兽帕鲁的世界非常广阔,有许多隐藏的地方和资源等待玩家去发现。不要害怕冒险,尽量探索每一个角落,寻找幻兽帕鲁新手快速上手技巧一、基地选址,以平坦为先在幻兽帕鲁中,选择一个

新手怎么买币最划算?新手购买加密货币时,可以采取以下策略以获得更好的回报:深入学习和研究目标币种,选择知名的币种进行投资,使用可信的交易所进行交易,设定合理的预算并定期购买,避免频繁交易和冲动投资,使用安全的钱包存储资产,密切关注市场动态。这些建议将帮助新手在购买加密货币时获得更好的投资体验。在购买加密货币之前,了解基本知识和市场情况很重要。了解不同币种的特点、用途和市场前景,避免盲目跟风。通过学习和研究,可以做出更明智的投资决策。对于新手来说,选择知名、流行且有良好声誉的币种通常更为稳妥。比特

哈医大临床药学就业前景如何尽管全国就业形势不容乐观,但药科类毕业生仍然有着良好的就业前景。总体来看,药科类毕业生的供给量少于需求量,各医药公司和制药厂是吸纳这类毕业生的主要渠道,制药行业对人才的需求也在稳步增长。据介绍,近几年药物制剂、天然药物化学等专业的研究生供需比甚至达到1∶10。临床药学专业就业方向:临床医学专业学生毕业后可在医疗卫生单位、医学科研等部门从事医疗及预防、医学科研等方面的工作。就业岗位:医药代表、医药销售代表、销售代表、销售经理、区域销售经理、招商经理、产品经理、产品专员、护


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Notepad++7.3.1
Easy-to-use and free code editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Mac version
God-level code editing software (SublimeText3)
