paragkalra Posted April 25, 2009 Share Posted April 25, 2009 Hello All, I was looking for PHP Coding guidle lines. Could someone please share some online URL specifying the best coding practices to be followed while coding in PHP? Cheers, Parag Quote Link to comment Share on other sites More sharing options...
Mchl Posted April 25, 2009 Share Posted April 25, 2009 It largely depends on preference. Here's just an example: http://framework.zend.com/manual/en/coding-standard.html Quote Link to comment Share on other sites More sharing options...
paragkalra Posted April 25, 2009 Author Share Posted April 25, 2009 Thanks... Quote Link to comment Share on other sites More sharing options...
coalgames Posted April 26, 2009 Share Posted April 26, 2009 There is also another guide but is a little outdated. http://www.dagbladet.no/development/phpcodingstandard/. Good luck Quote Link to comment Share on other sites More sharing options...
Mchl Posted April 26, 2009 Share Posted April 26, 2009 There is also another guide but is a little outdated. http://www.dagbladet.no/development/phpcodingstandard/. This one is for PHP4. Use with care. Quote Link to comment Share on other sites More sharing options...
coalgames Posted April 26, 2009 Share Posted April 26, 2009 I just finished reading the Zend one and I think that the zend one is a lot better. There is also another guide but is a little outdated. http://www.dagbladet.no/development/phpcodingstandard/. That one was last revised in 2003 Quote Link to comment Share on other sites More sharing options...
Cosizzle Posted April 28, 2009 Share Posted April 28, 2009 Ya its a total preference.... when i first started programming i would for example write my methods like this: <?php function myName() { // code } ?> then a teacher came a long and got all moody so it changed to <?php function myName() { // code } ?> now this class that im in now (new teacher) SWEARS by <?php function myName() { // code } ?> so ya... stick with what you can read... just keep it clean and be flexible to change Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.