You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Always use <?php to delimit PHP code, not the shorthand, <?, as this is the most used and supported across PHP setups and the one PHP will continue supporting in the future.
Use PHP5 style code conventions
Class constructors should be public function __construct(), not the PHP4-style class name. Use destructors when appropriate.
Explicitly declare visibility (public, private, protected) for member variables and methods.
Do NOT use PHP closing tags for files that contain only PHP code:
The ?> at the end of code files is purposely omitted. This includes for module and include files. … Removing it eliminates the possibility for unwanted whitespace at the end of files which can cause “header already sent” errors, XHTML/XML validation issues, and other problems.