Re: Strange class behavior
| From: | Daniel Gustafsson | Date: | Wed, 19 Jul 2000 09:43:24 +0000 |
| Subject: | Re: Strange class behavior | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7238@lists.php.net to get a copy of this message | ||
At 11:32 AM 7/19/00 -0400, you wrote:
>although I referenced $n->$id, which was initialized in the constructor
>to 1.
Refence it using $n->id.
This is a very common error... I don't know if this is because this might
be considered a intuition flaw in php or something else. I never had a
problem with it (but I've never had any trouble adapting weird conventions) ;)