views:

40

answers:

2

I've recently been shaking up my coding habits and have been toying with various approaches to coding style... things like using a space between method call parentheses and the parameters they contain, how to deal with multi-line array definitions and method calls, etc.

I'm wary of creating my personal flavor of everything, though, and want to skim through some well-regarded "authoritative" style guides. Which ones should I look at? I've had a hard time finding much other than the Zend guide.

+1  A: 

I just use the PEAR coding standards.

http://pear.php.net/manual/en/standards.php

Bill Karwin
+1  A: 

This is really for Codeigniter, but it's still PHP and an easy read and I like the styles used:

http://codeigniter.com/user_guide/general/styleguide.html

sitesbyjoe