Home  >  Article  >  Backend Development  >  How to learn PHP for newbies_PHP tutorial

How to learn PHP for newbies_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:29:41925browse

经常在某些论坛和QQ群里看到一些朋友会问“怎样才能学好PHP,怎样才能学好***语言 ”,但别人回答最多的是:最“简单”的开始。这个简单也许真的不简单,呵呵。下面我想分享一下自己学习的一些过程。

    每个人的学习方式不同,写这篇文章的目的是分享一下自己的学习过程,仅供参考,不要一味的用别人的学习方法,找对自己有用的学习方式

    经常在某些论坛和QQ群里看到一些朋友会问“怎样才能学好PHP,怎样才能学好***语言 ”,但别人回答最多的是:从最“简单”的开始。

    这个简单也许真的不简单,呵呵。下面我想分享一下自己学习的一些过程。先说些费话,语言组织能力差,说了不少费话,愿意看的就看,不要骂我就行

    其实学习一门新语言并不是太难,重要的是你有没有准备好去学好它,时间的长短和个人的能力和决心有关。黑客界也流行一句话就是“没有入侵不了的计算机”,这句话大概的意思是说:如果你的技术比维护这台计算机的管理员更胜一筹,那么就能拿下这台计算机甚至能拿下这个管理员管理的所有计算机,如果技不如人,只能继续学习超过对方。我说这些话的意思就是让准备学习陌生语言朋友一定要下决心去学习,只要你下了决心去学了,就一定能学好,千万不要半途而废。(退一万步来说,即使是没学好,但你懂的必然比别人多)

    了解什么是最简单:

    1、网页的基本构成就是html代码,所以必须熟悉HTML/CSS/JS等基本元素

    2、熟悉PHP语法,了解PHP和HTML的运行方式,学习将PHP与HTML结合完成简单页面

    PHP手册是比较好的入门老师

    影响学习进度和程序强大是否的几个可能因素:

    1、记忆力

    一门语言的强大是否,应该看它的函数库和代码执行效率。每门语言都是有自己强大的函数库,要学好它,就必须得花很多的时间去记忆,良好的记忆力能使学习达到事半功倍的效果。

    2、数学和逻辑思维

    这个当然不是绝对影响,因为看开发项目的复杂程度。小的项目不需要太多的数学和逻辑思维能力,但如果是开发类似于财务或大量运算相关项目,这一点就是非常重要了。

    3、有其它语言的基础

    “一通百通”,这句话的道理也是不容置疑。都说有C语言基础的人,学习PHP比较容易,我没学过C语言,所以不知道这句话的效果

    4、多看别人写的代码

    学习别人的长处,补自己的不足,当然不完全为这个我始终相信:一个有组织的团队写出来的程序不会比个人差我PHP入门就是从看代码开始的,我喜欢看别人写的代码 。(入门是从disucz,PHPWind和国外的phpbb看起,还有就是目前最流行的开源BLOG程序),我尽可能的收集网络上的PHP开源程序,到目前为止,我收集并下载的PHP开源程序有2GB大小,包括BBS,BLOG,CMS等。我下载并不是为了收藏他们,是学习他们的编程方式和实现方法,如果自己想实现的功能不知道怎么去实现,我就会学习他们的实现方法,并不是抄袭代码,最终结果是想通过学习,将技术变成属于自己的ASP我也是以同样的方式学习的(动易和讯的程序及其它ASP开源程序)

    5、实践

    理论固然重要,但实践必不可少。你理论知识再好,如果不实践,就不能看到理论所产生的结果或效果,并不能使你的记忆深刻,所以不能纸上谈兵

    6、恒心

    广告不是有句话是这样说的么:“世界上最高的山是自己”,这句话相信朋友们都能理解
    过自己这关,其它的都好办

    7、找对自己有用的学习方式

    这条可以参照4,我的入门是从看代码开始可能有朋友会问:“一开始看那些强大的代码,你能看懂么?”我的学习方式是从“使用”找“学函数”:PHP的函数太多,短时间不可能记住所有的函数,因为我相信,一个大的项目肯定会使用常见和必须的函数,找到这些函数,才会有重点的学习这些函数,难道你能说写BBS的函数会写BLOG用的函数少么?难道会写BBS还不会写BLOG么?找对学习方式是要经过多种学习方式的尝试,所以这个只有自己把握,毕竟每个人的学习方式不一样

    8、尽可能的找视屏教程看

    别人说十句,还不如一个操作看的明白,这个相信朋友们都有体会吧

    9、从项目开始

    You must “force” yourself to start by writing projects. The "growth" of any master must go through a process, which is achieved step by step and is not easy to come by. The first works of many friends who learn PHP are almost all "guest books" because it is the simplest program. Being able to write a guestbook does not completely mean that you have started, nor does it mean that you know PHP. I initially wanted to use an "online bookmark" as my first work, but after writing the basic functions, I didn't I continued, but it didn’t make much sense. Now I am writing a CMS system that is completely targeted at enterprises, including some common functions for enterprises. I want to use this as my first entry into PHP

    10. Understand and learn PHP-related technologies

    A real master must learn the technologies related to PHP. If you want to learn PHP well, you must learn databases. PHP+MYSQL is considered a "golden partner", so you must get in touch with MYSQL or a database that you think is better. Start designing a more "reasonable" database. Reasonability here is broader, including database optimization, query optimization, etc.

    The last thing I want to say is: "Don't rely on others." No one is willing to pay attention to a novice's question, because the novice's question is too simple in their eyes, and they don't want to explain a popular saying among female friends: "A man can be relied upon. Sows can climb trees." Quoting this sentence has no other meaning, just to let friends know the meaning of this sentence

    What I also want to say is: "Cherish the number of times others answer." There is a limit to people's patience. You must cherish this limit. Don't ask all questions. Some questions can be answered by yourself by spending some time. Ask, every time you ask, the patience of others is reduced once. When you really need help, it happens to be the time when others are unwilling to answer you. You can imagine that you have lost too much

    The suggestion is: "Have a question? Baidu." I believe your friends have noticed that the questions you asked can be found in the search engine, and there are detailed solutions. You can use the search engine Come and find your own answer, why bother asking others

    Currently the largest Chinese search engine is baidu.com, the global Google, and of course there are other search engines. If you can’t find any of them, try a few more. Unless your question is the first to ask, then you are Lucky, it may also be a problem with your "looks", haha, just joking, don't mind it, but this sentence is quite popular

    I wish friends who are getting started with PHP can find a learning method that suits them and achieve early success!!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/323366.htmlTechArticleI often see some friends in some forums and QQ groups asking "How can I learn PHP well? How can I learn PHP well?" ***Language", but the most common answer from others is: the "simplest" way to start. This Jane...
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