If I understand correctly, given $bar is an object

$foo = $bar 

will copy entire contents of $bar into foo. Following question: what happens
with $foo = new Foo? Does the object get created, copied into $foo and then 
destroyed, while the copy in $foo lives? 

In other words, is there a performance benefit to do $foo =& new Foo?





-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to