447

PHP 中变量的命名,你们是用驼峰法还是下划线?

 4 years ago
source link: https://www.v2ex.com/t/586637
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
PHP - @hbolive - 翻了翻资料,貌似驼峰法是对的,可能我接触 PHP 比较早,一直都习惯用下划线的方式,比如:$user_id,看来为了规范要改一下了。。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK