【发布时间】:2013-01-08 04:33:15
【问题描述】:
我很困惑如何使用 & 运算符来减少记忆。
我可以回答以下问题吗?
clase C{
function B(&$a){
$this->a = &$a;
$this->a = $a;
//They are the same here created new variable $this->a??
// Or only $this->a = $a will create new variable?
}
}
$a = 1;
C = new C;
C->B($a)
或者我的理解完全错误.....
【问题讨论】:
-
猜你根本不需要
&。