Reference to static method in PHP?

前端 未结 8 2399
伪装坚强ぢ
伪装坚强ぢ 2021-02-18 18:20

In PHP, I am able to use a normal function as a variable without problem, but I haven\'t figured out how to use a static method. Am I just missing the right syntax, or is this

8条回答
  •  臣服心动
    2021-02-18 19:04

    "A member or method declared with static can not be accessed with a variable that is an instance of the object and cannot be re-defined in an extending class"

    (http://theserverpages.com/php/manual/en/language.oop5.static.php)

提交回复
热议问题