开发者

Another way to reference $this in PHP?

开发者 https://www.devze.com 2023-02-23 13:59 出处:网络
Is there any other way to reference the current object in php other than the usual $this ??? Thank you

Is there any other way to reference the current object in php other than the usual $this ???

Thank you

p.s.: I was thinking of perhaps a hidden开发者_StackOverflow社区 or shorthand form..


No : that's precisely what the special-pseudo-variable $this is for.


Sure:

$t = $this

                              

0

精彩评论

暂无评论...
验证码 换一张
取 消