Experience Sharing: how to get started with PHP

Source: Internet
Author: User

ForPHPProgramming language. Everyone has different ways of learning. The purpose of this article is to share their learning process for reference only. Do not blindly use others' learning methods to find useful learning methods. I often see some friends in some forums and QQ groups asking "How to Learn PHP well and how to learn *** language well", but what others answer most is: start with the simplest one.

This is not simple, maybe. Next I want to share some of my learning processes. Let's talk a little bit about it. The language organization capability is poor. If you are willing to read it, just look at it and 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 your abilities and determination. The hacker community is also popular with the saying "No computers can intrude into." It probably means that if your technology is better than the administrator who maintains this computer, you can win the computer and even all the computers managed by the Administrator. If you are not skilled, you can only continue to learn more than the other computer. What I mean by these words is that you must make up your mind to learn a new language. If you make up your mind to learn it, you will be able to learn it well and never give up halfway. (In step 5, even if you fail to learn well, you know more than others)

Understand what is the simplest:

1. The basic structure of a webpage is html code. Therefore, you must be familiar with basic elements such as HTML, CSS, and JS.

2. Familiar with PHP syntax, understanding how PHP and HTML run, and learning to combine PHP and HTML to complete simple pages

PHP manual is a good beginner

Several possible factors that affect learning progress and program strength:

1. Memory

Whether a language is powerful 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 memorizing it. A good memory can make learning more effective with half the effort.

2. mathematical and logical thinking

This is certainly not an absolute influence, because it depends on the complexity of the development project. Small projects do not require much mathematical and logical thinking capabilities, but it is very important to develop projects similar to finance or a large number of computing-related projects.

3. Other language basics

There is no doubt about this sentence. It is easier for people who have basic C language to learn PHP. I have never learned C language, so I don't know the effect of this sentence.

4. Read the code written by others

Learning the strengths of others and complementing your own shortcomings is not all about it. I always believe that a program written by an organized team is no worse than a person.

My PHP entry begins with code reading. I like to read the code written by others. (The entry is started with disucz, PHPWind, and phpbb outside China, there is also the most popular open-source BLOG Program). I try my best to collect open-source PHP programs on the network. So far, the PHP open-source programs I have collected and downloaded are 2 GB in size, including BBS, BLOG, and CMS. I did not download them to favorites, but to learn their programming methods and implementation methods. If I do not know how to implement the functions I want to implement, I will learn their implementation methods, it is not a copy of the code. The final result is to turn technology into your own. Asp I also learned in the same way (mobile and messaging programs and other ASP open-source programs)

5. Practice

Theory is important, but practice is essential. Your theoretical knowledge is good. If you do not practice it, you will not be able to see the results or effects of the theory, and you will not be able to remember deeply. Therefore, you cannot talk about it on paper.

6. Perseverance

Isn't there a saying like this in an advertisement: "the highest mountain in the world is yourself?" I believe that my friends can understand myself and everything else can be done well.

7. Find a learning method that is useful to you

For details about this article, refer to 4. My entry is to start by reading the code.

Some may ask, "Do you understand the powerful code at first ?"

My learning method is to find "learning functions" from "use": there are too many PHP functions, so it is impossible to remember the functions that can be stored in a short time, because I believe that, A large project will certainly use common and necessary functions. Finding these functions will focus on learning these functions, can you say that writing BBS functions is less than Writing BLOG functions? Can I write a BBS without writing a BLOG?

Finding the correct learning method requires a variety of learning methods, so you have to be sure of it. After all, everyone has different learning methods.

8. Try to find a video tutorial.

If you say ten sentences, it's better to understand one operation. I believe all my friends can understand it.

9. Start from the project

Be sure to "force" yourself from writing projects.

Any "Growth" of a master must go through a process. This process has come step by step and is hard to come.

Many of my friends studied PHP's first work, almost all of which were "message books", because it was the simplest program.

Writing a message book does not completely mean that you are getting started, nor that PHP is ready. I started to think of a "Web Bookmark" as my first file, however, I did not continue after I wrote the basic functions, and I felt very boring. Now I want to write a CMS system that is completely correct for the enterprise, including some common functions for the enterprise. I want to use this as my first entry to PHP.

10. understand and learn PHP-related technologies

Real experts must learn the technology associated with PHP. To learn PHP well, they must learn the database. PHP + MYSQL is considered as a "golden partner ". Therefore, you must contact MYSQL or a database that you think is better, and start designing a "reasonable" database. The rationality here is more extensive, including database optimization and query optimization.

The last thing I want to talk about is: "Don't rely on others." Nobody wants to pay attention to a newbie's question, because it is too simple for them to ask questions and doesn't want to explain them. A popular saying for a female friend is "a man can stand by, a sow can go to the tree". It doesn't mean anything else, but it just lets friends know what it means.

I would also like to say that the patience of people who cherish the number of answers answered by others is limited. They must cherish this limit and do not ask any questions, some questions can be asked if you can find the answer by yourself. Every time you ask a question, the patience of others will be reduced. when you really need help, when others don't want to answer you, imagine that you have lost too much.

The suggestion is: "Is there a problem? Baidu: "I believe all my friends have noticed that you can find related questions in search engines and have detailed solutions, you can use search engines to find your answers.
Currently, the largest Chinese search engine is baidu.com, the world's google, and of course there are other search engines. If you cannot find one, try a few more unless your question is the first one, so you are lucky, or you may have the question of "looks". Well, you can say that you are a joke. Don't mind, but this sentence is quite popular.

I wish my PHP friends who are preparing to get started can find a learning method suitable for themselves and get started soon !!


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.