Use full PHP tags
Write:
Don't write:
Semicolons
Write:
Don't write:
No closing tags
When writing a module or customizing your theme template.php, don't use PHP closing tag ?>.
Notice that at the bottom of the following snippet, there is no PHP closing:
By doing this you prevent PHP interpreter to stop and restart on the next source code file. This mean better performance.