开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜