PHPBuilder.com has offered the top eleven practices they see as a must for any PHP developer to incorporate.
Right from its inception, PHP was widely used to develop web based applications. Since PHP is a scripting language, one must follow some rules while developing. This article will discuss the best practices that are generally followed in the PHP world.
Their „top eleven“ list includes things like:
- Error reporting should be turned on
- Meaningful and consistent naming standards
- Deep Nesting should be avoided
- Use adequate comments
- Use Cache mechanism wherever required
You can read up on their full list and the descriptions of each in the full post.