Re: Can a class instance a property of another class
| From: | Jochem Maas | Date: | Tue, 30 Jan 2007 09:48:26 +0000 |
| Subject: | Re: Can a class instance a property of another class | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248015@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
> On Sat, January 27, 2007 7:00 pm, Jochem Maas wrote:
>> objects are always by reference in php5 - in php4 you have to
>> use the 'reference' operator (the @ symbol) to make object be passed
>> by reference.
>
> [pedantic for="archives"]
> Not the @ symbol, which suppresses errors, but the & symbol which
> forces a reference instead of a copy.
> [/pedantic]
ah yes - whoops - my bad, twas probably late and I wasn't paying attention anymore.
>