gpt4 book ai didi

php - $this->return 和 return 的区别

转载 作者:行者123 更新时间:2023-12-04 21:54:50 28 4
gpt4 key购买 nike

我最近在 Joomla 组件(Kunena,更准确地说是 Kunena)中看到这段代码,那么使用 $this->return VS 简单的 return 语句有什么区别.

我已经用谷歌搜索了代码,但没有明显的结果并检查了here & here

我对 return 语句与 $this 而不是简单的 return 的用法感到困惑。让我知道它是否真的很简单,或者我错过了一个幼稚的概念,那么我肯定会放弃这个问题。

checkin 代码 - http://pastebin.com/vvhuPhbZ

最佳答案

$this->return 不是“一个东西”,它只是一个名为“return”的对象属性。与 $this->foo$this->bar 没有区别。

return返回语句

关于php - $this->return 和 return 的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16956838/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com