Holladiewaldfee,
es funzt. Danke, Antja :)
Die Lösung für's Archiv:
---
class xyz
{ function who()
{ while(list($k, $v)=each($GLOBALS))
{ if($GLOBALS[$k]===$this)
echo "Ich heisse ".$k;
}
}
}
$bla = new xyz();
$bla->who();
---
Ausgabe: "Ich heiße bla".
Ciao,
Harry
--
Intelligenz ist nicht zwingend etwas positives.
Man weiß erst, was man hatte, wenn man es verloren hat.
Intelligenz ist nicht zwingend etwas positives.
Man weiß erst, was man hatte, wenn man es verloren hat.