类里边用驼峰(类名首字母大写,属性和方法首字母小写)

  类名:User,UserType

  类中的属性和方法:getUserName(),tableName,instance

 

参数、数据表和字段 用小写字母+下划线

  参数:user_route_on

  数据表和字段:think_user,user_name

 

常量、环境变量 用大写字母+下划线 

  常量:APP_PATH

  数据表和字段:APP_DEBUG

相关文章:

  • 2021-11-11
  • 2022-03-01
  • 2021-11-20
猜你喜欢
  • 2021-12-16
  • 2021-08-11
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
相关资源
相似解决方案