[PHP] Might just be a typo, but...

2001-08-31 Thread Jon Thompson Coon
Hey, you people are great. 5 reasonable answers to a 1 silly problem within the hour. I'll exploit your goodwill. Here's the next one, this is about objects (in finnish): class Example { var $list; // Here I set the problem var $hinta; var $määrä; function Example() {

Re: [PHP] Might just be a typo, but...

2001-08-31 Thread Jon Thompson Coon
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

Re: [PHP] Might just be a typo, but...

2001-08-31 Thread Martín Marqués
On Sáb 01 Sep 2001 05:31, you wrote: 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

Re: [PHP] Might just be a typo, but...

2001-08-31 Thread Martín Marqués
On Sáb 01 Sep 2001 05:18, you wrote: Hey, you people are great. 5 reasonable answers to a 1 silly problem within the hour. I'll exploit your goodwill. Here's the next one, this is about objects (in finnish): class Example { var $list; // Here I set the problem var $hinta; var