PHP Introductory experience and learning process sharing

Source: Internet
Author: User
Tags learn php php and php programming php programming language

For the PHP programming language. 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 that an organized team can write a program that is no worse than a person.

I am starting from the beginning of PHP to read code, I like to see other people write code (Getting Started from disucz,phpwind and foreign phpbb look, there is the current most popular open source blog program), I as far as possible to collect the network of PHP open source program, so far, I collected and downloaded the PHP open source program has a 2GB size, including bbs,blog,cms and so on. I download is not 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 methods, not plagiarism code, the end result is to learn, the technology into their own. ASP I also learn in the same way (dynamic easy and news procedures 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 their own this, the other is good to do

7, find a useful way to learn

This one can refer to 4, I'm getting started with looking at the code

A friend might ask, "Look at the powerful code at first, can you understand?"

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 will be less than the function of blogging? 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, each person'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, the process is a step-by-step, Hard-won

A lot of friends learn PHP's first work is almost all "guest book", because it is the simplest program

Will write a guest book, also can not fully represent you have already started, also does not represent will be PHP, I started to want to a "network bookmark" as his first work, but wrote the basic function did not continue after, feel not 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, you have to learn the database, Php+mysql is considered a "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 and so on.

The last thing I want to say is: "Don't rely on others." No one wants to bother with a novice's question because the novice's question is too simple in their eyes to explain. Female friends are very popular a word is "men 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 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?

The largest Chinese search engine in the

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.

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.