The scope resolution operator (also known as Paamayim Nekudotayim) or, more simply, a pair of colons, can be used to access static members, class constants, and to override properties and methods in a class.
Use the class name when referring to these items outside of the class definition.
From PHP 5.3.0, a variable can be used to refer to a class, and the value of the variable cannot be a keyword (such as self,parent , and static).
It seems strange to choose Paamayim Nekudotayim as the name of the double-colon operator. However, this is the decision made by the Zend development team when writing Zend Engine 0.5 (used in PHP 3). In fact, the word in Hebrew is the meaning of a double colon.
Example #1 used outside the class:: operator
self , parent and the static These three special keywords are used to access their properties or methods within the class definition.
Example #2 used inside the class definition::
Example #3 Calling a method of the parent class
MyFunc ();? >
The above describes the scope resolution operator (::), including the aspects of the content, I hope that the PHP tutorial interested in a friend to help.