阅读背景:

为什么PHP需要显式引用“$ this”来调用成员函数?

来源:互联网 

That's pretty much it. Scoping in most OO programming languages resolves symbols fine without an explicit reference to the current instance (i.e. '$this' in PHP). Why does PHP require me to precede every call to a member function in the same class with $this?That's pretty much it. Scoping in most OO progr




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: