Difference between revisions of "Coding Standards"

From ARK
Jump to: navigation, search
Line 1: Line 1:
The ARK coding standards follow the PEAR coding standards for PHP code. The PEAR documentation is pretty complete and should be consulted in the first instance at the [[PEAR| http://pear.php.net/manual/en/standards.php]] website.
+
The ARK coding standards follow the PEAR coding standards for PHP code. The PEAR documentation is pretty complete and should be consulted in the first instance at the [[http://pear.php.net/manual/en/standards.php| PEAR]] website.
  
 
Common errors and things to watch out for:
 
Common errors and things to watch out for:

Revision as of 15:57, 4 June 2007

The ARK coding standards follow the PEAR coding standards for PHP code. The PEAR documentation is pretty complete and should be consulted in the first instance at the [PEAR] website.

Common errors and things to watch out for:

  • Use a space after operators but not after function calls
 function(call);
 if (operator) {