Page 1 of 1

code convetions

Posted: Tue Jun 24, 2003 12:59 am
by Ashikuzzaman
Dear All,

May you provide me a link for standard code conventions followed in PHP coding like tabbing, spaces, { start and } end, switch-case allignment, variable declaration policy etc?

Posted: Tue Jun 24, 2003 3:59 am
by twigletmac
PHP has no standard coding conventions - you kinda get to make your own up, see this thread:
coding style: curly brackets - why like this?

If you wanted to code stuff to be released through PEAR then they do have some standards:
http://pear.php.net/manual/en/standards.php

Mac

Posted: Tue Jun 24, 2003 5:36 am
by releasedj
Here is another attempt at specifying a coding standard in PHP. I quite like this standard, but it's not perfect... at least not to my liking.