Re: [PHP] Passing a class through an array

2007-03-15 Thread Jeff Taylor
Ahh the problem was that I was using $name1->$name instead of $name1->name to call the variable. Thanks though :) > If line 140 is the $name1->name part, then you probably haven't > written your constructor correctly to cram 'Toon1' into the name > field... > > > On Thu, March 8, 2007 11:51 pm, J

Re: [PHP] Passing a class through an array

2007-03-12 Thread Richard Lynch
If line 140 is the $name1->name part, then you probably haven't written your constructor correctly to cram 'Toon1' into the name field... On Thu, March 8, 2007 11:51 pm, Jeff Taylor wrote: > Hey all, > I'm very new to programming and PHP. > I want to pass instances of a class through an array, an

Re: [PHP] Passing a class through an array

2007-03-09 Thread Tijnema !
On 3/9/07, Jeff Taylor <[EMAIL PROTECTED]> wrote: Hey all, I'm very new to programming and PHP. I want to pass instances of a class through an array, and then use a foreach later to grab details of each class at once... but it returns a fatal error Code: $me = new Toon('Toon1','1') $him = new

Re: [PHP] Passing a class through an array

2007-03-08 Thread Jim Lucas
Jeff Taylor wrote: Hey all, I'm very new to programming and PHP. I want to pass instances of a class through an array, and then use a foreach later to grab details of each class at once... but it returns a fatal error Code: $me = new Toon('Toon1','1') $him = new Toon('Toon2','0') $character

[PHP] Passing a class through an array

2007-03-08 Thread Jeff Taylor
Hey all, I'm very new to programming and PHP. I want to pass instances of a class through an array, and then use a foreach later to grab details of each class at once... but it returns a fatal error Code: $me = new Toon('Toon1','1') $him = new Toon('Toon2','0') $characterListing = array($me,