Basic context of PHP beginners (for reference only) (1)

Source: Internet
Author: User
Tags what php
Although php is getting increasingly popular, there are fewer and fewer good articles. Most of them are empty and tasteless topics, discussing useless or rarely used knowledge, or even some cutting-edge news, although these things are irrelevant to the future, the consequences of these things are becoming increasingly apparent.

Although php is getting increasingly popular, there are fewer and fewer good articles. Most of them are empty and tasteless topics, discussing useless or rarely used knowledge, or even some cutting-edge news, although these things are irrelevant to the future, the consequences of these things are becoming increasingly apparent.

Although php is getting increasingly popular, there are fewer and fewer good articles. Most of them are empty and tasteless topics, discussing useless or rarely used knowledge, or even some cutting-edge news, although these things are irrelevant to the future, the consequences of these things are becoming more and more apparent. They have fooled most newcomers who have no ability to identify, and is getting out of the normal track.

Most of the topics focus on the technology itself, while ignoring the more important factors-people, getting knowledge through searching, reading, practice, discussion, and other methods to solve practical problems at work, however, the premise is that you already have a stable job, and you are not worried about your survival.

Here, I will give php beginners a basic learning context based on my experience as a mentor and hope to help you. In fact, many articles I have written have provided a general learning context, but they are represented in graphs. Maybe you don't understand them. It doesn't matter, this article will provide you with the correct guidance.

1. It is not recommended to find a book that is useless. What's more, most of the book structures and content are similar, but the code is different. They are all patchwork, especially because domestic books are more prominent. (PHP,. NET, and Java are mostly like this) do not have this page to understand what I don't want to look down on. The learning of computer languages is not the same as that of the original algebra and ry. Instead of launching all the results with a few of them.

2. Where should I start? Some teachers suggest you open your computer and build a development environment (go online and find out how to install Apache, PHP, and MySQL; of course, you can also refer to my other articles ), find the simplest development tool (I prefer Editplus or UEStudio) and create the first program: Hello World !, As long as you see the results, let's further discuss what to learn. This suggestion is understandable, but it ignores a major problem. What do we learn about PHP? Is it just because it is fun? Although fun is only an internal reason for learning, it is not the main reason, but the real purpose of learning is to work, that is, to work for the enterprise, so how do enterprises demand it, what is the process of enterprise development? What are the platforms for enterprise development? All of these should be first told to students, so that they can truly understand the needs of enterprises, in order to make appropriate learning plans and learn in a targeted manner.

Therefore, here I will discuss the following questions (1. LAMP system platform; 2. Explanation of recruitment inspiration; 3. Personnel, processes and tools ).

3. From now on, your thoughts, all the knowledge you have seen, and remember, you can put them in the real environment of the enterprise for verification. Verify all knowledge!

4. First, do you really know about php? Whether you have learned, heard, searched, or read related books before, you must know what PHP is, why do we need to pay attention to it and then build the corresponding development environment? Here, we suggest that you directly use the integrated development environment instead of manually building the development environment, I will not answer the questions again here. You can refer to my other articles. Then try the entire development process.

You need to know its origins, features, similarities and differences with other languages, and application scope.

5. first understand the language basics of php, which is actually three major components (data type, data structure, and control structure ). Let's take a look at all the basic data types and data structures (also called storage structures and control types) in php. Let's just look at the differences between them and the languages you have learned before. If you haven't learned C before, and you don't have any language basics, it doesn't matter. You just need to break down the code and see what has changed. What are the variables and functions, continue to test the code according to your speculation until you probably figured out why it was written in the code. How they coordinate their work. Strings, arrays, and regular expressions must be carefully processed.

Why do we need to learn this part? Some people cannot figure it out. The main reason is that it will be used for the future test. Of course, it will be used almost every day in actual work.

6. The targeted learning function library, PHP, is also a functional language. Because it absorbs some advantages of other languages, it provides a large number of function libraries to provide programming efficiency, but what we need to know is that not all function libraries need to be understood, but you should know the most basic function libraries that provide those functions and go there to find functions. I will tell my students how to use the PHP user manual to learn the corresponding functions well. As for how to master them skillfully, there is no trick. Only by writing more and practicing more can I master the function usage, parameters, and write custom functions as required.The basic principle is: to find what to use first. Nothing to write

7. You should implement arrays, strings, and regular expressions. Here is a skill. Anyone who has learned Regular Expressions knows that regular expressions are not so studious and there are too many things to remember, some people have not learned this for a long time. Here, I use some useful tools to teach my students to master this content. You need to know that you must first sharpen your tools to do things well. Good tools sometimes get twice the result with half the effort, but the premise is that you must know the necessary knowledge to know how to use the tool. If you don't even know the most basic knowledge, the tool can only be your decoration.

8. You are a little tired, because you have not made anything decent. Well, let's start using PHP file processing. That's good. We can finally see some useful program results. If you want to, you can experiment with some file functions one afternoon and make some simple File Processing-based applications. Although the function is simple, it is not far from the success! Because all the most basic functions of the program are basically complete, and the lack of other aspects is the focus of our next step.

9. Most of the above learning is in the background development, that is, using PHP to simply process the data and then output it to the browser. What I see is some interfaces without any beautiful appearance. Is this a defect ?. Well, let's start using HTML. That's good. We can finally see results that are not ugly. A fresh UI came out. If you want to experiment with HTML components (frames, tables, links, text, fonts, images, videos, audios, etc.) one afternoon ......)

10. Well, you will find that everything on your interface looks good, but you cannot execute any action. Yes, you have to start learning Javascript. We are familiar with most of the content. Yes, the basics of most languages are the same, but they are different in writing. Focus on BOM and the application of basic functions. In other words, the Code originally written in the background is put on the front end and written again.

11. So far, we should be familiar with the basic programming mode in PHP, and transition from the background to the front-end. Of course, we are still very vague about the interface. It doesn't matter. The most important thing is not that you are a professional programmer or professional artist, but that you still maintain a high enough interest and enthusiasm for learning. Do you have any more? If you still have one, let's continue and see what we will continue to learn later. (To be continued)

With so much nagging, I hope to help young friends a little bit. I also welcome you to communicate with me and leave a message for better communication.

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.