6.1 Simple Statements
Each line contains at most one statement, for example:
$argv++; // Correct
$argc--; // Correct
$argv++; $argc--; // Correct
6.2 Compound Statement
A compound statement is a sequence of statements enclosed in braces, in the form of "{ statement }". For example, the following paragraphs.
- The enclosed statement should be indented one level compared to the compound statement
- The left brace "{" should be located at the end of the line that starts the compound statement; the closing brace "}" should start on a new line and be indented Align with the first line of a compound statement.
- Braces can be used for all statements, including single statements, as long as they are part of a control structure such as if-else or for. This makes it easy to add statements without worrying about introducing bugs by forgetting to add parentheses.