$this->$function()在PHP中是什么意思?解决办法

WBOY
Release: 2016-06-13 12:40:35
Original
991 people have browsed it

$this->$function()在PHP中是什么意思?
各位兄弟,最近小弟在看天天团购的代码,结果在/modules/index.mod.php中看到这么一段代码:


function ModuleObject( $config )
{
$this->MasterObject($config);
$runCode = Load::moduleCode($this);
$this->$runCode();
}
Copy after login

第五行代码中的$this->$runCode();这句在PHP中有什么特殊含义吗?由于本人PHP没有经过正规的培训,所以一些不太常用的基础规则不明白,希望各位前辈能指导一下,感激不尽。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!