Mailinglisten-Archive |
* Oliver Kummerow wrote:
> $Objekt->$variable funktioniert, aber nicht mehr
class a {
function a()
{
$this->variable = "blubber";
$this->blubber = "Was anderes";
}
}
$x = new a;
print $x->variable;
print $x->$variable;
mit $objekt->$variable hat man also das Gleiche
wie $$variable (variable variables).
Oder habe ich dein Problem jetzt mißverstanden?
Björn.
php::bar PHP Wiki - Listenarchive