more precisely; class member access
| From: | Thomas Angst | Date: | Wed, 09 Aug 2000 15:55:35 +0000 |
| Subject: | more precisely; class member access | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-10949@lists.php.net to get a copy of this message | ||
Howdy,
how do I access a class member if the class is stored in an array?
this should work
$arr[$someelement]->member = "some string";
but neither this
$this->elements[$tablename]->list = true;
nor this
${this->{elements[$tablename]}}->list = true;
nor this
$this->{elements[$tablename]}->list = true;
nor this
${this->elements[$tablename]}->list = true;
is working in PHP3 :(
how can I solve this?
best regards
Thomas