PHP Style Guide ArticlesFile Format TextMate BBEdit PHP Closing Tag File Naming Class and Method Naming Variable Names Commenting Constants TRUE, FALSE, and NULL Logical Operators Comparing Return Values and Typecasting Debugging Code Whitespace in Files Compatibility One File per Class Whitespace Line Breaks Code Indenting Bracket and Parenthetic Spacing Localized Text Private Methods and Variables PHP Errors Short Open Tags One Statement Per Line Strings SQL Queries Default Function Arguments Doc navigationUser Manual → Was this article helpful to you? Yes No How can we help? Name Email subject message