Introduction to PHP: How to learn PHP?

Source: Internet
Author: User
Tags functions learn php mysql php and

Each person's study way is different, writes this article The goal is to share one's own learning process, only for the reference, do not blindly use other people's study method, find to oneself useful learning way

Often in some forums and QQ group to see some friends will ask "How to learn PHP, how to learn * * * * * language", but others answered most is: from the most "simple" start.

This simple perhaps really is not simple, hehe. Here I would like to share some of my learning process. First say some crap, language organization ability is poor, said a lot of crap, willing to see the look, don't scold me on the line

In fact, learning a new language is not too difficult, it is important that you are not ready to learn it, the length of time and personal ability and determination. The hacker world also popular word is "not to invade computer", if your technology is better than the one that maintains the computer, then you can take this computer and even take down all the computers that the administrator manages, and if you don't, you can only continue to learn more than the other person. I say these words means to be ready to learn unfamiliar language friends must be determined to learn, as long as you make the determination to learn, you will be able to learn, do not give up halfway. (10,000 step back, even if you do not learn, but you know more than others)

Understand what is the simplest:

1, the basic composition of the Web page is the HTML code, so must be familiar with the basic elements such as Html/css/js

2, familiar with PHP syntax, understand how PHP and HTML run, learn to combine PHP and HTML to complete a simple page

the PHP manual is a better primer teacher

Several possible factors that affect learning progress and program strength:

1. Memory

The power of a language should look at its function library and code execution efficiency. Each language has its own powerful library of functions, to learn it, you must spend a lot of time to remember, good memory can make learning to achieve a multiplier effect.

2. Mathematics and Logical Thinking

This is certainly not an absolute effect, because look at the complexity of the development project. Small projects do not require much mathematical and logical thinking, but it is important to develop projects that are similar to finance or a large number of operations.

3, there are other languages of the foundation

"Itong", the truth of this sentence is indisputable. All say have C language foundation of people, learn PHP easier, I have not learned C language, so I do not know the effect of this sentence

4, read more people write code

Learn the strengths of others, to fill their own deficiencies, of course not entirely for this I always believe: an organized team to write the program will not be worse than the individual I am starting from looking at the code, I like to read the code written by others. (Getting started is from disucz,phpwind and foreign phpbb look, there is the current most popular open source BLOG program), I collect as much as possible on the network PHP Open source program, so far, I collect and download the PHP Open source program has 2GB size, including Bbs,blog, CMS and so on. I didn't download it to collect them, is to learn their programming and implementation methods, if they want to implement the functions do not know how to achieve, I will learn their implementation, not plagiarism code, the end result is to learn from the technology into their own ASP I also learn in the same way ( Dynamic and easy to process and other ASP Open source program)

5. Practice

Theory is of course important, but practice is essential. Your theoretical knowledge is good, if you do not practice, you can not see the results of the theory and the effect, and can not make your memory profound, so can not be theoretical

6, Perseverance

Advertising is not a sentence that said: "The highest mountain in the world is their own", this phrase to believe that friends can understand

It's all right.

7, find a useful way to learn

This can refer to 4, my entry is from looking at the code may be a friend will ask: "First look at the powerful code, you can read?" My way of learning is from "use" to find "learning function": PHP functions too much, a short time can not remember all the functions, because I believe that a large project will certainly use common and necessary functions, find these functions, will be focused on learning these functions, Can you say that the function of the BBS can write the function of the blog less? Can write BBs still can't write blog? Find the way to learn is to go through a variety of learning methods to try, so this only own grasp, after all, everyone's learning style is not the same

8, as far as possible to find a video-screen tutorial to see

Others say 10, not as much as an operation to see understand, this trust friends have experience it

9. Start from Project

Be sure to "force" yourself to start by writing the project. Any master of "growth" is to go through a process, this process is step-by-step, Hard-won many friends learn PHP's first works are almost all "guest book", because is the simplest program will write a guest book, also can not fully represent you have started, also does not represent will be PHP, I started to want to use a "Web bookmark" As my first work, but after writing the basic function has not continued, it does not feel much meaning. Now write a completely correct enterprise-oriented CMS system, including some common features for the enterprise, I would like to use this as my first entry into PHP works

10, understand and learn about the technology and PHP

A real master must learn the technology associated with PHP, to learn PHP well, you have to learn the database, Php+mysql is considered "golden partner" so you have to contact MySQL or you think the better database, began to design a more "reasonable" database, where the reasonable is more extensive, including database optimization and query optimization, etc.

The last thing I want to say is, "don't rely on others," Nobody wants to bother a novice's question, because the novice question is too simple in their eyes, do not want to explain the female friend is very popular a word is "man live, Sow will be on the tree" quote this sentence no other meaning, just let friends know the meaning of this sentence

Also want to say is: "Cherish the number of people answered" the patient has a limit, must cherish this limit, do not have any questions to ask, some problems themselves to spend some time to find the answer also to ask, every time you ask, the patience of others subtract once, and so you really need help when people are not willing to answer your time , you can imagine that you've lost too much.

Suggested that: "Have a problem?" I believe friends have noticed, you ask the question, in search engines can find relevant questions, and have detailed solutions, you can use search engines to find their own answers, why ask others?

At present, the largest Chinese search engine is baidu.com, Google around the world, of course, there are other search engines, one can not find, try a few, unless your problem is the first question, then you are lucky, may also be your "looks" problem, hehe, joking, don't mind, But that's a pretty popular phrase.

I am ready to get started in PHP friends can find a suitable way to learn, an early success!!



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.