markdown PHP命名约定

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown PHP命名约定相关的知识,希望对你有一定的参考价值。

There is no definitive naming convention in PHP, and they differ by framework:

Zend does not permit underscores
Symfony also encourages camelCase
Wordpress encourages underscores and does not like camelCase
CodeIgniter also promotes underscores
So: Use whatever your framework uses or create your own naming convention.

At least for function names and class methods, there is a one thing to consider,
but some frameworks discard it: 
PHP is case insensitive in that case, so aTonalFunction() and atonalFunction() 
are both calls to the same function.

以上是关于markdown PHP命名约定的主要内容,如果未能解决你的问题,请参考以下文章

markdown 单元测试命名约定

markdown 命名约定

markdown 遵循Laravel命名约定

markdown Git Branch命名约定

markdown Rails命名约定

markdown 命名约定