Is it safe to have 1 letter class names in PHP, e.g A, B, C

前端 未结 7 1965
野的像风
野的像风 2021-02-07 19:13

Is it safe to have single letter class names like A, B, P, etc?

7条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-07 19:33

    There's no reason why it shouldn't be, but it's more useful to give your classes a meaningful name

    EDIT

    Link to PHP naming guide

提交回复
热议问题