Re: OOP question
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: OOP question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149713@lists.php.net to get a copy of this message | ||
On Sat, 1 Jun 2003, Jackson Miller wrote:
> Is it possible to reference two instances of an object at once with a
> single variable name while retaining the ability to reference the
> objects seperately?
No chance. Well, you could hack it with some really fancy object
overloading, but in general, no, you cannot have a single reference that
references two distinct objects. References work the other way around.
Given a single distinct object, you can create multiple equivalent
references to it.
-Rasmus