首页 > Web开发 > 详细

php命名形式规范

时间:2020-05-11 22:09:40      阅读:35      评论:0      收藏:0      [点我收藏+]

ClassName-类名
getIdByMail-方法名

$a_b 变量名

Internally, PHP itself uses Underscores for variables and functions, camelCase for Methods, and PascalCase for Classes, as stated in this PHP documentation page (userlandnaming.rules), and as spelled out in this PHP coding standards document. That said, various frameworks follow different conventions of their own. – SherylHohman Apr 6 at 18:11

php命名形式规范

原文:https://www.cnblogs.com/qinqiu/p/12872136.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!