PHP V5.3 extends the use of the static keyword.
PHPV5.3扩展了static关键词的使用。
Once again, you should place the static keyword after the visibility modifier.
再次,应将static关键字放在可见度修饰符后。
These classes will be candidates for using the static keyword on the class declaration.
这些类将成为在类声明上使用static关键字的备选。
One thing to note about the static keyword is that it doesn't work the same as how this works in the nonstatic context.
有关static关键字需要注意一点,它的工作方式与在非静态上下文中的工作方式不同。
The static keyword will simply try to resolve the call in the current class instead of the class the function was defined in.
静态关键字将仅仅尝试在当前类中解析调用,而不是在定义函数的类中执行。
The static keyword will simply try to resolve the call in the current class instead of the class the function was defined in.
静态关键字将仅仅尝试在当前类中解析调用,而不是在定义函数的类中执行。
应用推荐