php 静态方法

时间:2020-05-12 14:53:12   收藏:0   阅读:43

The only rule is that static methods or properties are out of object context. For example, you cannot use $this inside of a static method.

$MyClass = new MyClass();

$MyClass->Foo();
MyClass::Foo()

 

原文:https://www.cnblogs.com/qinqiu/p/12876080.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!