Referrences

From: Date: Mon, 03 Jun 2002 07:29:19 +0000
Subject: Referrences
Groups: php.dev 
Request: Send a blank email to php-dev+get-84745@lists.php.net to get a copy of this message
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?

« previous php.dev (#84745) next »