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

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

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

<br />
function ModuleObject( $config )<br />
	{<br />
		$this->MasterObject($config);<br />
		$runCode = Load::moduleCode($this);<br />
		$this->$runCode();<br />
	}<br />
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template