In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about what PHP developers should not know. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. Frame
Framework is arguably one of the most important issues in PHP development. There are many ways to develop Web applications with PHP, and there are many open source frameworks that can be used to help rapid development 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 have worked in this mode, you will be familiar with it. After a while, you can even create a framework according to your own needs.
two。 Template engine
If you are not using a framework to implement a specific design pattern, you want to use a template engine. Whether you create or use an existing template (such as Smarty), the template engine will separate your logical code from the HTML page (and the associated CSS / js /, etc.). This greatly simplifies your code, makes it quick and easy to modify the entire program, and makes it easier for non-developers to modify your program.
3. Code reuse
As I mentioned earlier, PHP is code reusability in the language used. From multiple small and medium-sized documents to the entire database class, PHP developers are free to reuse existing code when they need it. In fact, you can almost build an entire application without writing a single line of code.
4. Don't redevelop existing things.
Obviously, only a few PHP developers know that PHP itself has a lot of usefulness. Forget the new library, or complex code routines-take a look at the PHP manual first. 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, browse through it, and you'll find something.
5. IRC is a pleasant thing.
When you have a complex problem that can't be solved, you can go to IRC. PHP's unofficial support channel is intoxicated by many experienced developers. You need an IRC client. If you are using Firefox,ChatZilla as a good plugin, paste your code with irc://irc.freenode.net/php as the header when you need help. Post your question and wait patiently; some kind of warm-hearted person (or more) will give you the answer. When you get the answer, consider other questions that need help.
Thank you for reading! This is the end of this article on "what PHP developers should not know". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.