Re: Object Copying
| From: | Jimmy | Date: | Fri, 11 Jan 2002 03:01:54 +0000 |
| Subject: | Re: Object Copying | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80148@lists.php.net to get a copy of this message | ||
Hi Ken,
> As we all know, this copies an object in PHP:
> $obj2 = $obj1
> Preferable a way to fix PHP not to copy the object, but the reference.
this will do want you want:
$obj2 = &$obj1;
--
Jimmy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Always keep a cool head and a warm heart