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.
范围解析操作符应位于类名和希望访问的静态属性之间。
To call a static method from outside of its class, use the class name together with the scope resolution operator and the name of the method.
要从类外部调用静态方法,可使用类名加上范围解析符和方法名。
To call a static method from outside of its class, use the class name together with the scope resolution operator and the name of the method.
要从类外部调用静态方法,可使用类名加上范围解析符和方法名。
应用推荐