PHP Coding Style Guide
All PHP code must use the following coding standards:
Code style guide
- Don't use tabs. Instead use 4 spaces to indent.
- Limit the width of your code to approximately 90 characters.
- Don't end your file with
?>. Leave it open to prevent rogue whitespace problems.
- Always begin your php files with
<?phpbut you can use php short tags
<?for internal codebases since it's easier to read. But public codebases should not use short tags for compatibility reasons.
Last edited Wed Jul 11 23:13:44 2012 by Will Schmid