- Use a space before and after assignment operators
$foo = bar
good
$foo=$bar
bad
- Do not use a space when incrementing or decrementing in calculations
Left ( Table::fieldName ; Length ( Table::fieldName ) -1 )
good
Left ( Table::fieldName ; Length ( Table::fieldName ) - 1 )
bad
- Preferred comparisons
- ≠ over <>
- ≥ over >=
- ≤ over <=