Re: Might just be a typo, but...
| From: | Jon Thompson Coon | Date: | Sat, 01 Sep 2001 08:31:39 +0000 |
| Subject: | Re: Might just be a typo, but... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65563@lists.php.net to get a copy of this message | ||
> Here are your mistakes! This lines should be:
>
> $this->hinta = 0;
> $this->määrä = 0;
> $this->list = array(); // Initialised
>
> Thats because you haven't initiallized $this->list, but $list, that is
> internal to the Example function (in this case the constructor).
Thats just it. I'm blind to these kinds of mistakes with PHP and other
assorted languages. I'm a java guy, and the syntax in that language is just
wonderful for dysleksic guys like me. Guess how many hours i've been looking
for missing $:s.
Soon I'll come up with a demanding question.
- jon