What are the ways to learn PHP?

I often see some friends in some forums and QQ groups asking "how can I learn PHP well , how can I learn *** language well", but the most answered by others is: start with the "simplest".

This simple may really not be simple, huh, huh. Below I would like to share some of the process of my own learning.

Let’s talk a little bit first. I have poor language organization skills. I’ve said a lot of bad words. Just watch it if you want to. Don’t scold me.

 

In fact, it is not too difficult to learn a new language. The important thing is whether you are ready to learn it well. The length of time is related to personal ability and determination. There is also a popular saying in the hacker world that "there is no computer that can't be hacked", which roughly means: if your technology is better than the administrator who maintains this computer, then you can take down this computer and even be able to Take down all the computers managed by this administrator. If you are not as skilled, you can only continue to learn and surpass each other. What I mean by saying these words is that friends who are ready to learn a foreign language must make up their minds to learn. (Ten thousand steps back, even if you didn't learn well, you must know more than others)

Learn what is easiest :

1. The basic composition of a web page is html code , so you must be familiar with basic elements such as HTML/CSS/JS

2. Familiar with PHP syntax, understand the operation mode of PHP and HTML , and learn to combine PHP and HTML to complete simple pages

The PHP manual is a good introductory teacher

There are several possible factors that affect learning progress and program robustness:

1. Memory

Whether a language is powerful or not depends on its function library and code execution efficiency.

Every language has its own powerful function library. To learn it well, you must spend a lot of time to memorize it. A good memory can make learning more effective.

 

2. Mathematical and logical thinking

This is of course not an absolute impact, because it depends on the complexity of the development project.

Small projects don't require a lot of math and logical thinking skills, but it's very important if you're developing something like finance or a lot of computing.

 

3. Have the foundation of other languages

There is no doubt about the truth of the phrase "one-stop, one-stop". It is said that it is easier for people with C language foundation to learn PHP . I have never learned C language, so I don't know the effect of this sentence.

 

4. Read more code written by others

Learning from others' strengths and making up for one's own shortcomings, of course not entirely for this

I always believe that the programs written by an organized team are no worse than individuals

My PHP entry started by looking at the code, I like to read the code written by others ( the entry is from disucz, PHPWind and phpbb abroad , and the most popular open source BLOG program at present ) , I collect as much as possible on the Internet PHP open source programs, so far, the PHP open source programs I have collected and downloaded have a size of 2GB , including BBS , BLOG , CMS , etc. I download not to collect them, but to learn their programming methods and implementation methods . If I don’t know how to implement the functions I want to implement, I will learn their implementation methods, not copying the code. The final result is to learn , turn the technology into its own

I also learned ASP in the same way ( Dongyi Hexun's programs and other ASP open source programs )

 

5. Practice

While theory is important, practice is essential. No matter how good your theoretical knowledge is, if you don’t practice it, you won’t be able to see the results or effects produced by the theory, and it won’t make your memory deep, so you can’t talk about it on paper.

 

6. Perseverance

Isn't there a sentence in the advertisement that says: "The highest mountain in the world is yourself", I believe that friends can understand this sentence

Get over yourself, everything else is fine

 

7. Find a way of learning that works for you

This article can refer to 4 , my entry is to start by looking at the code

Some friends may ask: "Can you understand those powerful codes at first?"

My way of learning is to find "learning functions" from "use": There are too many functions in PHP , and it is impossible to remember all the functions in a short time, because I believe that a large project will definitely use common and necessary functions, find these Functions, you will focus on learning these functions. Can you say that the functions used to write BBS will be less than the functions used to write BLOG ? Is it possible to write BBS but not write BLOG ?


Finding the right way of learning is a matter of trying a variety of ways of learning, so you can only control it yourself, after all, everyone’s way of learning is different

 

8. Look for video tutorials as much as possible

If others say ten sentences, it is better to understand it through one operation. I believe all of my friends have experienced this.

 

9. Start with a project

Be sure to " force " yourself to start by writing a project.

The "growth" of any master must go through a process, which is a step-by-step process that is not easy to come by.

The first works of many friends who learn PHP are almost always "guestbooks" because it is the simplest program.

Being able to write a guestbook does not mean that you have already started, and it does not mean that you have mastered PHP . I began to think of a "web bookmark" as my first work, but after writing the basic functions, I did not Go on, it doesn't make much sense. Now write a CMS system that is completely correct for enterprises, including some common functions for enterprises. I want to use this as my first work for getting started with PHP .


10. Understand and learn technologies related to PHP

A real master must learn the technologies associated with PHP . If you want to learn PHP well , you must learn the database. PHP+MYSQL is considered to be the "golden partner"

So you have to get in touch with MYSQL or the database you think is better, and start designing a more " reasonable " database. Reasonable here is more extensive, including database optimization and query optimization, etc.

 

The last thing I want to say is: "Don't rely on others." No one wants 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 it.

There is a very popular saying among female friends that "men live on, sows go up to trees". There is no other meaning to quote this sentence, just to let friends know the meaning of this sentence

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325646867&siteId=291194637