Mailinglisten-Archive |
Hallo,
teravolt at gmx.de schrieb am Samstag, 14. August 2004 um 00:03:
> Gibt es für diesen Fall irgendeine andere Möglichkeit außer allow call
> time pass reference zu aktivieren?
class foo {
public function bar (&$foobar)
{
// mach was!
}
}
$foo = &new foo();
$foo->bar($foobar);
Fertig und ohne Error. Und weniger Schreibarbeit.
Gruss,
Andreas
php::bar PHP Wiki - Listenarchive