note 3843 deleted from Classes and Objects by ronabop

From: Date: Thu, 17 Aug 2000 09:57:05 +0000
Subject: note 3843 deleted from Classes and Objects by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-2157@lists.php.net to get a copy of this message
Does anyone know how to create a reference to an object? I'm using arrays of objects and have to copy the object out of the array to do get around the ability to directly access an object in an array: <pre> e.g. // Doesn't work $aOrig[$nElement]->SetVar($value); but // Does work $oCopy = $aOrig[$nElement]; $oCopy->SetVar($value); </pre> However the original object does not contain the changes made by $oCopy's call to SetVar()?

« previous php.notes (#2157) next »