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 staggers)
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?
Please do not flame me here, different strokes for
different folks!
:-)
...
And that's fine. The main thing is: aim for consist
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?
Please do not flame me here, different strokes for
different folks!
If you're entirely new to coding in PHP ... and you don't have a
codebase already
* 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
>
4 matches
Mail list logo