Reputation: 222428
Is there any other way to access a static variable from a static method, other than using classname::$variable?
Upvotes: 0
Views: 624
Reputation: 382899
If it is different class:
classname::$variable
If it is same class:
self::$variable
Upvotes: 1