[PHP] Re: php style guides

2005-01-12 Thread Matthew Weier O'Phinney
* Tim Burgan [EMAIL PROTECTED]: What 'rules' do you follow about styling/formatting your PHP code? Do you follow a guide that is available online? PEAR standards are fairly well-accepted: http://pear.php.net/manual/en/standards.php I generally have my own preference for formatting like if

[PHP] Re: php style guides

2005-01-12 Thread Jason Barnett
Tim Burgan wrote: Hi everyone, What 'rules' do you follow about styling/formatting your PHP code? Do you follow a guide that is available online? sacred_cow_warningPlease do not flame me here, different strokes for different folks!/sacred_cow_warning If you're entirely new to coding in PHP ...

Re: [PHP] Re: php style guides

2005-01-12 Thread Jochem Maas
Jason Barnett wrote: Tim Burgan wrote: Hi everyone, What 'rules' do you follow about styling/formatting your PHP code? Do you follow a guide that is available online? sacred_cow_warningPlease do not flame me here, different strokes for different folks!/sacred_cow_warning :-) ... And that's

Re: [PHP] Re: php style guides

2005-01-12 Thread Tom
Something I've laboured over for years, in various languages (same issue in perl, ASP, JSP...). My personal preference depends on how much of what is being dumped. If it's a really simple page, then do it in line, I tend to indent it as a seperate tree to the php code (ie there are two