There are several benefits of writing clean code for any project , no matter how small it is. The main benefit is that when you want to edit and read it after a long break then you can get an idea instantly about code. And in addition it helps in editing your code and especially when you need to find an error. Please find some guidelines for writing cleaner PHP coding :
• Be relevant to the module
• Give meaningful names
• Use white space
• Modulize with classes
• Make constant with care