PHP, with its easy-to-learn features and the advantages of agile development, has grown from an almost unknown open source project to a dynamic web design tool of choice for technicians, which is better, faster, and easier to learn than other languages. Still, when we face a new technology that we are unfamiliar with, we feel at a loss, and do not know where to start, it seems that we always feel a clear context. In addition, the biggest obstacle is that the learning process is dull, thus losing interest in learning. However, if you can master a learning method that suits you, you can do more with less. I have been based on the teaching experience of PHP for many years, and a lot of talent training success stories, listed learning methods are more or less have a certain reference. Of course, the scientific method of learning, but also just let you less detours, but not a night proficient, or need to long-lasting cultivation! First, to determine the goal of learning PHP has a reason, what makes you choose to learn PHP? Is it a hobby? To find a job? Or is it a development need at work? or recommended by others? Wait a minute. Of course, no matter what reason you are, then choose to learn PHP to have a firm belief. Can not be a moment to learn few moments, when listening to other people say that such a language how good, immediately switch, or multiple language learning at the same time. Only concentrate on a course of painstaking effort to become an "expert", perseverance to generate interest, after all, interest is the best teacher! Second, PHP learning route map just beginning to learn PHP, most novice will have some confusion, do not know where to start learning, do not understand the order of learning, can not find the focus of learning. For example, a novice heard that learning PHP needs to set up a good operating environment, according to online information. Online a lot of this information, almost all of the real project on-line use of the professional environment, is provided by Linux under the source code package installation method, quite complex, into hand if the custom installation according to the project features may take one or two days, the novice some need to spend a two months to get a ballpark, That's why a lot of novices choose to give up from the start. If someone teaches you an integrated installation environment for learning, it may take you only 5 minutes to get it done. Also a novice learned for a long time, just do not know how to write projects, repeated learning the basic part, is stagnant. Also some novice can not find the key, learn a lot of content, the results actually use not much, have more than half may this life will not use, waste a lot of time. So the novice began to learn, like go to the depths of the mountains, need someone to guide you, to find the right direction to stride forward. 1-15 learn the route map for beginners in PHP. According to the guidelines in PHP learning Route 1-15, the process of learning PHP can be divided into 4 stages, step by step, set a learning goal for each stage, and arrange a learning plan, to achieve the goal can open the next stage of learning. Ø Stage A primer This is the beginning of the initial contact with PHP, the first toPHP development capabilities, and more contact with some PHP developed open source projects, online has a lot of open source PHP project can be downloaded, first learn a simple function operation can, mainly to generate interest in PHP learning, to understand PHP development requirements and PHP development features. Just like if you want to learn to make a car or repair a car, you must first learn to drive a car. In the earlier part of this chapter, we have learned about the components required for web development, so it is certainly not possible to learn PHP in isolation. If you are just beginning to contact web development to learn PHP directly, because PHP is a server-side script, how to install PHP operating environment to parse it. Also, PHP is a scripting language embedded in HTML, so be aware of some common HTML tags. It is necessary to do a little preparation before starting to learn PHP. Ø stage Two laying the groundwork this stage is the focus of learning, but the method is very important, such as PHP basic grammar and language structure (flow control, function, string, etc.) this part of the content can learn more fine, each knowledge point will be used in the development. And like arrays, objects, as well as file processing, image processing, MySQL database operations, PHP operations database and other content, first learn some common parts, will be some basic application enough on the line, this can greatly improve the progress of learning. At this stage of the study most new people will appear two common problems: first, may learn the content of the day, the next time when learning new content, the last learning of the forgotten almost, always remember. Of course, this big can not worry, do not stop, must continue to study, because the basic grammar is the knowledge will be used in the back of the technology, with more natural to remember. And like the high-level part also do not have to worry remember, are the class library or function library, just remember what the system has provided the function is good, time through the manual query can, remember the commonly used of course good. The second, is the content of the book, to see can understand, also can understand, is his hands, do not know where to start, no ideas. So to understand this stage of knowledge, we must try to make a small project (for example, the simulation to write a small mall, forum, or chat room, etc.), this project does not need to control security, optimization and code quality, as long as the function can be done. The purpose of this project is to open up your "ren du two Veins", and the basic part of the scattered knowledge points across, in the actual project to apply the practice, can better understand its grasp. Ø Stage three strengthened with stage two project development exercises, accumulated a number of development ideas, need to go back to deep learning each part of the knowledge points, such as arrays, objects, regular expressions, database operations, data structures and algorithms, these are the most commonly used in PHP development technology, this stage to learn can learn more full, More thorough and easier to master. Of course also learn some new content like template engine and PHP framework, and then doA project. And this phase of the project can not be like phase two o'clock of the project, just to achieve the basic function of the line, not only requires good code quality, business logic to be clear, the project structure is based on the most fluent development model, using framework and template engine, and adopt object-oriented thinking, and MVC pattern design requirements, Also to learn the project development process and specifications, as far as possible to make this project to achieve real on-line project standards. Ø stage Four improvement this stage is recommended to study in the work, because the content of this stage does not have the unified standard, needs to design the solution according to the actual project. Of course, it is necessary to collect and learn some theories in this area, or to do some experiments on simulation scenarios. In the four stages, seemingly simple, but also need us to devote themselves, perseverance. Three, insist on hands-on experiment played basketball? Shooting theory may be mastered quickly, but to improve the hit rate, flexibility can require repeated practice. Learning programming is the same, can read the code, can not be written out, can not be written out but you are not! More hands-on practice is very necessary, may have just touched, write a few lines of code will appear n error, the error is that you do not have mastered the technology, solve the problem is what you learned, when the error occurs more and more, your code writing ability is more and more skilled. Of course, in order to solve the code error faster, you can start by writing a few lines of code to run, so it is convenient to locate the bug location. In addition, writing code is the best way to practice the theory, you think the more confused technology, can be explained through the experiment. Also, be sure to add notes to your code while practicing, or record your learning notes, summaries, and analyses. I as a programmer, just learned to program the same no idea, at least also tiger painting has tens of thousands of lines of code, only slowly appear thinking. Just like the beginning of writing to have ideas, generally also go through several stages, the first to learn vocabulary, and then learn to make sentences, and then read a lot of other people's articles, and then their own imitation of writing some, gradually accumulated experience, to form their own ideas. Learn to program, I am afraid to come slowly, just to see, listen to, not hands are not enough to learn programming. More hands-on follow the book examples or supporting teaching video to start practicing, of course, it is best to add some of their own features, according to their own ideas to knock on some code, the harvest will be much larger. Quantitative changes can lead to qualitative change, and this has indeed happened a lot of times. Remind a sentence, to understand the code thinking after the knock, carrying knock, do not put on the left side of other people's program, to the right of a son of a mother's written, this is no longer a programmer, and become a typist. The paper came to the end of shallow, don't ask so much, don't think so much, write it. Four, the first important things to build a house, first build the skeleton, and then talk about the decoration. Painting the landscape, to first draw the structure, and then talk about polishing. Knowing a machine with a complex structure should first identify the context and then gradually recognize each joint. In order to cope with the exams from elementary school to college,We recite all kinds of details that should not be mastered in advance, but also form a learning habit of dying to see details. And now learning PHP, is to change the time. "Grasping large and small, important things first" is the attitude of dealing with tedious affairs. For newcomers who have never been in touch with PHP before, PHP is undoubtedly huge, and it seems that every field can be expanded, all in an open space, and the energy expended in reaching every detail is undoubtedly immense. Most beginners are ambitious, two-eyed shining staring at every new knowledge point, met any of the knowledge point can be plucked clearly, plainly. What's wrong with that? My opinion is, there is no big problem, but the study efficiency is too low! It is a character flaw to pursue perfection in everything that is to be carried out in the future. Bold to give up some things, have lost only, put their limited, valuable energy in the important points of knowledge directly related to the place, this is the most efficient way to learn! After all the points have been taken, there is time to have the energy to idle dry, then to study those edge corner of the technology bar. Everything that has nothing to do with our direct work goal is to throw it aside or figure out enough to support the next step of learning. Spending time and energy on development projects, spending on writing and working on problem-solving skills, is the right and fast way to move to a master. When you read to a place temporarily do not understand, let go for a while, the pursuit of some flowing, natural realm bar, just do not stop the pace of progress, not by the road next to the root of the stub interfere with your forward itinerary, project, real project, this is the purpose. To the project to drive their own learning, when grasping the context of technology and then go to supplement the details of the study is the correct way to learn PHP. Free to receive the Lamp Brothers and original PHP tutorial CD/"Detailed PHP" Essentials Edition, details of the inquiry website customer Service: http://www.lampbrother.net
|