第七篇 PHP编码规范

当码农多年,始终进步不大,前面说了第一个原因是没有明确的目标;第二个原因是没有养成良好的习惯(即优秀的职业规范)。

1)pear 规范 http://pear.php.net/manual/en/standards.php;

2)This could be any combination of PSR’s,规范见 https://github.com/php-fig/fig-standards/tree/master/accepted

3)These recommendations are merely a set of rules that some  project lick symfony, Drupal, Zend. 规范见

http://symfony.com/doc/current/contributing/code/standards.html

本博客的所有博文,大都来自自己的工作实践。希望对大家有用,欢迎大家交流和学习。 我的新站:www.huishougo.com
原文地址:https://www.cnblogs.com/zhouqingda/p/5111744.html