PHP from the initial unknown to the current hot popular, and become one of the preferred procedures for web development today, with the development of Internet technology and rapid growth, continuous improvement; we see in many textbooks the grammatical structure of the knowledge and the actual programming is different, the real knowledge in the actual development of the acquisition So every PHP developer should be familiar with the following four things before starting to develop a Web application:
First:PHP program Development Framework
PHP framework can be said to be one of the most important problems in PHP development in program development.
While it is true that there are many ways to develop Web applications in PHP, there are many open-source frameworks in many PHP frameworks that can be used to help quickly develop and maintain higher consistency and effectiveness.
Some of the better frameworks include CakePHP, Symfony and CodeIgniter. Many frameworks also follow the MVC design pattern, and if you work in this mode, you'll be familiar with it. After a while, you can even create a framework based on your needs.
Second:PHP program template engine
For PHP programming If you are not using a framework to perform a specific design pattern, then you want to use a template engine,
Whether you create your own or use an existing template (such as Smarty), the template engine will make your logic code separate from the HTML page (and related CSS/JS/etc.), which greatly simplifies your code, makes the whole program changes quickly and easily, and makes it easier for non-developers to modify your program.
Third:PHP program code reuse
As I did before,PHP is the best code reuse in the language in use .
From the multi-medium document to the entire database class,PHP developers can choose to reuse the existing code when they need it.
In fact, you can build an entire application without writing a single line of code.
IV: do not re-develop existing things in PHP development
We know that the PHP development program is obviously one thing, only a few PHP developers know that PHP itself has a lot of available;
Forget about new libraries, or complex code routines-check out the PHP manual first;
For example, have you ever heard of Number_format (), Parse_url (), Zhong WordWrap () or Bbcode_parse ()? Take a look at the entire function reference, select a category, browse, and you'll be sure to find something.
Understanding PHP's four concepts is critical to web development