开发者

Referring to a static variable from a static method of the same class

开发者 https://www.devze.com 2023-01-06 07:22 出处:网络
You have a static function: public static function foo() 开发者_Go百科In the same class you have a static variable:

You have a static function:

public static function foo()

开发者_Go百科In the same class you have a static variable:

public static $uaa

How do you refer to $uaa from foo()?


Like this: self::$uaa

0

精彩评论

暂无评论...
验证码 换一张
取 消