Coding Conventions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Ashikuzzaman
Forum Newbie
Posts: 5
Joined: Mon Jun 23, 2003 6:22 am
Location: Dhaka, Bangladesh
Contact:

code convetions

Post 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?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
User avatar
releasedj
Forum Contributor
Posts: 105
Joined: Tue Jun 17, 2003 6:35 am

Post 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.
Post Reply