Access static variables in an abstract class in PHP
Is there any other way to access a static variable from a static method, other开发者_运维技巧 than using classname::$variable?
self::$variable
, if it's in the same class.
If it is different class:
classname::$variable
If it is same class:
self::$variable
精彩评论