Re: Wikimedia - php4
| From: | Rasmus Lerdorf | Date: | Wed, 21 Sep 2005 05:08:12 +0000 |
| Subject: | Re: Wikimedia - php4 | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-222847@lists.php.net to get a copy of this message | ||
Robert Cummings wrote:
> On Wed, 2005-09-21 at 00:58, Rasmus Lerdorf wrote:
>
>>And for PHP5 you can just drop all references related to objects and it
>>will do the right thing.
>
>
> Eeeek, that's not entirely true. Sometimes you want a real reference to
> an object even in PHP5 :/
$a = new foo();
Will create a reference to the object.
$b = $a;
Now you have 2 references to the same object.
For any sort of normal use, you never need to explicitly create
references to objects in PHP 5.
-Rasmus