Thanks. If I understand you, then, I should say, in the example I gave:
$subsequentRef = $ref;
yes? Both vars would be references to the object's _v variable, correct?
As a follow-on, if my code created a reference to the array in the constructor, thusly:
Class A {
var $_v;
function A($var) {
$this->_v = &array($var => 0);
}
function GetV() {
return $this->_v;
}
}
$obj = & new A(50);
$ref = $obj->GetV();
$subsequentRef = $ref
then GetV wouldn't be defined as returning a reference, and $ref, $subsequentRef, and $obj->_v all point to the array created in the constructor, yes?