There is a difference between the knowledge in the grammar structure textbook and the actual program design, and the real knowledge should be obtained in the actual development. Each PHP developer should be familiar with the following four things before starting to develop a Web application:
1. The Framework
The framework can be said to be one of the most important issues in PHP development. There are many ways to develop Web applications in PHP, and there are many open source frameworks that can be used to help develop quickly and maintain greater consistency and effectiveness. Among them the better frame includes cake, symfony and CodeIgniter. Many frameworks also follow the MVC design pattern, and if you've worked in this mode, you'll be familiar with it. After a while, you can even create a framework based on your own needs.
2. Template engine
If you are not using a framework to perform a specific design pattern, then you want to use the template engine. Whether you create or use an existing template (such as Smarty), the template engine will make your logical code independent from the HTML page (and the associated CSS/JS/etc.). This greatly simplifies your code, makes changes to the entire program quick and easy, and makes it easier for non-developers to modify your programs.
3. Code Reuse
As I have stated before, PHP is the best code reuse in the language you use. From small to medium documents to the entire database class, PHP developers can choose to reuse existing code when they need it. In fact, you can build an entire application without writing a single line of code.
4. Do not re-develop existing things
Obviously, only a handful of PHP developers know that PHP itself has a lot of usability. Forget about the new library, or the complex code routines-look at the PHP manual first. For example, have you ever heard of Number_format (), Parse_url (), WordWrap () or Bbcode_parse ()? Look at the entire function reference, select a category, browse, you will find something.