A static property or method is accessed by using the scope resolution operator :: between the class name and the property/method name
class myClass {
   static $myStaticProperty = 42;
}

echo myClass::$myStaticProperty;
by Valeri Tandilashvili
4 years ago
PHP
OOP
1
Pro tip: use ```triple backticks around text``` to write in code fences