|
Posted by Logos on 12/19/07 22:11
<cowers in the middle as flames go over his head>
So is this, my current understanding, correct?
$foo = new Test();
$a = $foo;
$b = &$foo;
$foo and $b are both pointing to the same thingie, which in turn
points to Test().
$a is pointing to a different thingie from $foo/$b, which in turn
points to Test().
Changing either $foo OR $b to point to a new thingie will result in
BOTH being changed.
Changing $a to point to a new thingie will leave $foo and $b
unaffected.
<looks hopeful>
Navigation:
[Reply to this message]
|