Through
1. Framework
The framework is one of the most important issues for PHP developers. There are many ways to develop web applications using PHP. There are many open-source frameworks that can be used to help rapid development and maintain higher consistency and effectiveness. The better frameworks include cakePHP, Symfony, and CodeIgniter. Many frameworks also follow the MVC design pattern. If you have worked in this pattern, you will be familiar with it. After a while, you can even create a framework based on your own needs.
2. template engine
If PHP developers are not using a framework to execute a specific design pattern, you want to use the template engine. Whether you create or use an existing template (such as Smarty) by yourself, the template engine will make your logic code independent from the HTML page (and related CSS/js ). This greatly simplifies your code, makes modifications to the entire program fast and simple, and makes it easier for non-developers to modify your program.
3. code reuse
As I mentioned before, PHP is the best language for code reuse. From many small and medium documents to the entire database class, PHP developers can freely choose to reuse existing code when needed. In fact, you can build the entire application without writing a line of code.
4. Do not re-start to find some items
Obviously, only a few PHP developers know that PHP has many advantages. Forget the new library or complex code routines-first look at the PHP manual. For example, have you ever heard of number_format (), parse_url (), wordwrap (), or bbcode_parse ()? Take a look at the entire function reference, select a category, and you will surely find something.
5. IRC is a pleasant task.
When PHP developers have a complicated problem that cannot be solved, they can go to IRC. Many experienced developers are fascinated by the unofficial PHP support channel. You need an IRC client. If you use Firefox, ChatZilla is a good plug-in. When you need help, stick your code with irc: // irc.freenode.net/php as the header. Post your questions and wait patiently. Some kind of enthusiastic people (or multiple) will give you answers. When PHP developers get the answer, consider other questions that need help. For PHP's huge function library, no one is a battle; on IRC, gathering everyone's knowledge can solve any problem.