Everyone from us have bad habits similarly every PHP programmers also have so it is good to get rid of them as soon as possible. If we dont follow few important principles or guidelines to code then it can cause a daunting experience and can put the future of app in danger too.
So, lets reveal all those important points to be remembered while coding in PHP.
- Learn to Plan
- Follow Object Oriented way of coding
- Not compromise with database and server security
- Proper commenting
- Follow a coding standard
- Better to follow a Design Pattern
- Keep Error_reporting on
- Use built-in PHP functions
- Use Post not Get
I will describe all the points surely in near future when I will be free.