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

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

WBOY
WBOYOriginal
2016-06-13 12:40:351032browse

$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 />

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

Statement:
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