PHP Coding Standards?
Posted: Mon Nov 27, 2006 7:17 pm
I have been writing PHP for years now. I've no doubt written tens of thousands of lines of code, and over the years have used many different naming, formatting, and commenting conventions, etc. The thing is, I have always written code directly for the server. It was never reviewed or used in a team environment. Now I need to write a small application as part of a job application, and I want to make sure that it is right.
I found this PHP Coding Standard page: http://www.phpe.net/html/php_coding_standard.html
It is 3 years old, and I just wanted to ask if someone wouldn't mind scanning over it very briefly, and letting me know if the information still holds true. Any tips or thoughts would be appreciated.
I know that these standards are debatable, and everyone has an opinion, but this will be reviewed by a team of programmers who work for a large company, and I want to make sure that I don't loose points because I didn't comment correctly, or put my brackets on a new line.
Thanks in advance.
I found this PHP Coding Standard page: http://www.phpe.net/html/php_coding_standard.html
It is 3 years old, and I just wanted to ask if someone wouldn't mind scanning over it very briefly, and letting me know if the information still holds true. Any tips or thoughts would be appreciated.
I know that these standards are debatable, and everyone has an opinion, but this will be reviewed by a team of programmers who work for a large company, and I want to make sure that I don't loose points because I didn't comment correctly, or put my brackets on a new line.
Thanks in advance.