Re: Accessing a class member in a list
| From: | Martin | Date: | Fri, 11 Aug 2000 07:18:07 +0000 |
| Subject: | Re: Accessing a class member in a list | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11271@lists.php.net to get a copy of this message | ||
I saw somewhere in the manual, that you have to use (in PHP3):
$dummy = $arr[$somelement]
$dummy->member = ".."
Martin
Thomas Angst wrote:
> Howdy,
>
> how do I access a class member if the class is stored in an array?
>
> $arr[$someelement]->member = "some string";
>
> this construct is not working in PHP3
>
> how can I solve this?
>
> best regards
> Thomas
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net