【发布时间】:2014-04-12 11:35:36
【问题描述】:
如何将全局 $here $that $this 返回到我的 new2()
new1()
{
global $that;
global $this;//every global will return
global $here;
$here="true";
return $here;
}
new2($here)
{
//i dont have $here
}
class Main {
public function parametr(){
new1();
new2($here)
}
【问题讨论】:
-
在我用您的代码解释所有内容时查看我的答案。