Scope resolution operator#PHP
The Scope Resolution Operator of the PHP scripting language is officially called Paamayim Nekudotayim (Hebrew פעמיים נקודתיים [ paʔamajim nəkudotajim ] ) and consists of two consecutively detected colons (:: ).
The word comes from Hebrew and means translated and transcribed into approximately " twice colon". Nekudotayim (colon) is composed of Nekuda (dot) and the dual ending- Ayim (two). The word consists of Paamayim Paam ( multiply ) and again the ending- Ayim.
The use of the operator allows constants to access static variables or static methods of a class.
Example
php class Math { const PI = 3.141592653589; } echo Math :: PI; ? > The example defines a new class called " Math ", which contains a constant "PI " in which a number ( in this case, an approximate value for π ) is stored. ( Paamayim Nekudotayim ) is then outside of this class using the scope operator accessed this constant and output them without creating an instance of the class before.