note 5866 deleted from language.oop by vincent

From: Date: Thu, 11 Sep 2003 19:49:04 +0000
Subject: note 5866 deleted from language.oop by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-56187@lists.php.net to get a copy of this message
Note Submitter: cleong@organic.com ---- Quel spectacle! Anyway, in PHP, objects are copied when you perform the assignment operation. The line $a = $b yields two distinct, unrelated objects -- $a and $b. To reference the same object with different variables, use ampersands. e.g. $a = &$b; This only works in PHP4 however.

« previous php.notes (#56187) next »