One of the hurdles to getting the hang of namespaces is learning how the scope resolution works.
要熟悉名称空间的使用,其中一个难点就是了解如何进行范围解析。
The scope resolution operator should sit between the class name and the static property you wish to access.
范围解析操作符应位于类名和希望访问的静态属性之间。
You can access a static property using the scope resolution operator, which consists of a double colon (: :).
可以使用范围解析操作符来访问静态属性,该操作符由双冒号(:)组成。
应用推荐