gevo12321 Posted January 25, 2013 Share Posted January 25, 2013 Just wondering what the accepted naming convention for php is. For example, in Java you have multyWordVariables, Classes, CONSTANTS Link to comment https://forums.phpfreaks.com/topic/273651-php-naming-convention/ Share on other sites More sharing options...
trq Posted January 25, 2013 Share Posted January 25, 2013 Though they are many and varied, PSR-1 has become the defacto. See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md You might also want to take it further and implement PSR-2 See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md Link to comment https://forums.phpfreaks.com/topic/273651-php-naming-convention/#findComment-1408297 Share on other sites More sharing options...
requinix Posted January 26, 2013 Share Posted January 26, 2013 Whatever you do, the most important thing is being consistent. Someone can learn a crazy naming scheme (please don't use one) but it doesn't matter if you're inconsistent with it. Link to comment https://forums.phpfreaks.com/topic/273651-php-naming-convention/#findComment-1408305 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.