Let's talk about my learning experience for new php beginners. The final exam will begin tomorrow, and I will go back to Fuzhou The Day After Tomorrow. because no network is installed at home, I have to wait for a while before coming to the forum, I will explain to the newbie how to start the final examination tomorrow, and then I will go back to Fuzhou The Day After Tomorrow. because the network is not installed at home, I have to wait for a while before that, I thought about it. I have answered questions for new users and demonstrated code. it seems that I have never talked about my learning experience. before I leave, I will talk about my learning experience in PHP, although I am talking about it, I think my situation is representative. I hope you will be able to join the new force of the PHPER team.
Most of my learning about PHP is based on self-study. I am no exception. I used to do ASP like me. I just saw the PHP code, and I felt strange. why is there so much $ in it? It's strange. in the subconscious, I think this is definitely more difficult than ASP, but when I understand the magic of PHP (ASP with the same function, the PHP program runs on the C2 antique machine in the past, and the speed difference is visible to the naked eye ), I was immediately attracted by the charm of PHP (although I don't feel any difference in my HP book), and also attracted my LAMP combination. So, my PHP learning process started ......
Well, I don't know what the first function PHP is. the first program I made in PHP received a group of form data and then showed them back, how can I accept the URL parameter in PHP? I checked the manual and flipped through the book. Oh! With $ _ GET, many programmers who come from ASP may also be affected by the ASP idea at the beginning. In fact, it doesn't matter. it will take some time to adapt. you may say, if you do not know ASP, it will not be affected. if you are wrong, after a long time, you will find that the accumulated ASP experience in the past has helped you master PHP more quickly, the so-called Yi Li Tong, Bai Li Ming, programs are similar, ASP can be said to be very close to PHP, so ASP programmers switch PHP quickly, how fast? Next, let's talk about ^ _ ^. I have never learned ASP in the past, or I don't want to read any of my 0-based friends. what? I have clearly written it to people who have used ASP in the past. In fact, they are all the same. I emphasize the methods and ideas of learning. no matter what language I want to learn, this is the most important thing.
Well, you have learned the basic syntax, learned the internal functions, and understood the examples in books. Are you sure you want to try your skills? Yes, this is the first point I have emphasized. to learn a program, you must constantly write code. this is the fastest way to learn and the most effective method. However, when you suddenly leave the book and make your own edits, what can I do if I don't know where to start ??? My approach is to stand on the shoulders of giants. Good code is always the best learning tool. you are advised to read the next message book, WHY? The message book is simple and meets all the requirements required by a complete system. Database, front and back-end. Let's start with the database part and see how it is designed and why it is designed like this. Can I have a better design? after understanding it, let's see how it interacts with PHP, here, I suggest you better learn some software engineering knowledge, learn to do system analysis, and divide system modules. This will help you design systems independently. After you understand the principles, you can start to program and follow your ideas. you will certainly encounter various difficulties. you need to refer to the manual, ask GOOGLE, and ask netizens, you may even be excited when debugging programs, but please never give up. success and failure are only in the process of moving forward. maybe you will succeed. if you step back, you will certainly fail. After you overcome the difficulties, you will find that you have learned a lot and accumulated experience through this program. What to do next? the message book is not enough. expand it to CMS and try it as BBS. if your system grows bigger, congratulations! you will surely hope to become an excellent PHPer!
Here, of course, we should introduce the skills of debugging programs. Remember, if a program fails to be debugged, we should first judge the spelling of words and judge the syntax without missing {}; and so on, you can segment the echo results to narrow down the debugging scope, especially for database interaction programs. First, you can output an SQL statement to see if it is correct. then, you can analyze how insertion/deletion fails. Debugging may take a lot of time for programming. of course, we still need to summarize our debugging experience. Of course, I have a habit. when I access the internet, I can see that the website has some good functions. how can I achieve this? What can I do? So I tried it by myself. whether it is successful or not, I think it will be helpful to improve the level. I don't like the boring example in the old repeated books, in my own hands-on practice, I think it is more efficient, and I enjoy the joy of successful code implementation, which is also the motivation for my learning. Of course, as a programmer, you must keep an eye on the development of the program. when you get started, you have to consider some advanced applications. for example, you can improve the program efficiency, use the template, and AJAX, always pay attention to industry trends.
Finally, let's talk about how long it takes for me to switch from ASP to PHP, that is, how long it takes for me to learn PHP. honestly, I will tell you more than half a year, including learning AJAX, smarty, XAJAX time. If you have any questions, how can this problem be solved ??? I have been learning PHP for more than half a year, but I have spent more than a year studying HTML, databases, software engineering, and ASP, in fact, there is no shortcut to learning programming. what we can do is to lay a solid foundation, improve the level, enrich ourselves, and finally wish you a pleasant learning experience and become an excellent PHPer, strengthen IT Power in China! Pai_^
...