Einzelnen Beitrag anzeigen

7eddi

Registriert seit: 3. Jun 2006
4 Beiträge
 
#8

Re: [PHP] Klasseninstanzen in PHP

  Alt 3. Jun 2006, 11:24
Das Handbuch hilft schonmal weiter , zumindest wenn man auch den letzten Kommentar von aib liest.

Zitat:
Note that the "new" operator no longer returns a copy of the constructed object, but the object itself. This behavior may be as of PHP 5.x.

This means that
$foo = new class();
and
$foo =& new class();
are equivalent now, and you don't have to worry about the problems stated on this page.
  Mit Zitat antworten Zitat