Re: Arrays within classes
| From: | Brian McLaughlin | Date: | Fri, 05 Apr 2002 20:11:50 +0000 |
| Subject: | Re: Arrays within classes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91791@lists.php.net to get a copy of this message | ||
Thank you!!
Now I need to figure out how to put all this hair back in my head.
Brian
"Rick Emery" <remery@excel.com> wrote in message
news:EAA093B474ABD311A71E00508B5FE08308D8F8CC@adntex03.us.excel.com...
> I corrected the syntax errors Erik found and added var_dump() after each
$t
> equation/assignment
>
> The problem is that you refer to $test->words. You should refer to
> $test->words
> BIG DIFFERENCE
>
> $test->words means find the value of $words and look for that variable in
> $test. That is, if $words ="abc",
> then $test->$words means $test->abc
>
> Yes, it's in the manual
>