> 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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to