Ok, let me see if I have this right:

When you do:

$var = new myClass();

$var instantiates and holds a copy of myClass.  But when
you do:

$var =& new myClass();

$var instantiates and references that instantiation?  

If so, then I'm curious - if you do:

$var2 =& new myClass();

and you modify the member variables in $var2, will the 
member variables of $var be modified as well?  Or does
$var2 reference a seperate instantiation?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to