Object reference...

From: Date: Sun, 21 May 2000 21:15:50 +0000
Subject: Object reference...
Groups: php.general 
Request: Send a blank email to php-general+get-259@lists.php.net to get a copy of this message
I can't get this to work inside a class: $object->foo = "something"; $bar = "foo"; print $object->$bar; I thought I'd get something out... Outside a class the above works. Everything concerned is declared within the same function in the class so i shouldn't have to refer to my object with $this->object, right? (anyway, I've tried it and I still get nothing). print $object->foo; works so the object's not empty. Cheers /David

« previous php.general (#259) next »