Re: [PHP] Accessing the values of objects

2004-05-10 Thread John W. Holmes
From: "John Nichel" <[EMAIL PROTECTED]> > Yeah, I get an empty value for the object I'm working with (quite a bit > bigger than the example I posted) when I try to retrive the individual > value, but the print_r of the object shows that it has value. I thought > my syntax was wrong, but I guess I

Re: [PHP] Accessing the values of objects

2004-05-10 Thread John Nichel
Michael Sims wrote: John Nichel wrote: Michael Sims wrote: John Nichel wrote: Are you sure $bob is an object? It says above that it's an array. If $bob were an object, print_r() should give "objectname Object" instead of "Array". Nah, that's just my bad typing without thinking. When I print_r($

RE: [PHP] Accessing the values of objects

2004-05-10 Thread Michael Sims
John Nichel wrote: > Michael Sims wrote: >> John Nichel wrote: >> Are you sure $bob is an object? It says above that it's an array. >> If $bob were an object, print_r() should give "objectname Object" >> instead of "Array". > > Nah, that's just my bad typing without thinking. When I > print_r($bo

Re: [PHP] Accessing the values of objects

2004-05-10 Thread John Nichel
Michael Sims wrote: John Nichel wrote: OOP is not my strong suit, and I'm trying to work with someone else's code, but am having trouble accessing a value. Let's say I have an object called $bob, and doing a print_r on $bob produces this Array ( Are you sure $bob is an object? It says ab

Re: [PHP] Accessing the values of objects

2004-05-10 Thread Richard Davey
Hello John, Monday, May 10, 2004, 7:18:04 PM, you wrote: JN>OOP is not my strong suit, and I'm trying to work with someone else's JN> code, but am having trouble accessing a value. Let's say I have an JN> object called $bob, and doing a print_r on $bob produces this JN> Array [snip] Th

RE: [PHP] Accessing the values of objects

2004-05-10 Thread Michael Sims
John Nichel wrote: >OOP is not my strong suit, and I'm trying to work with someone > else's code, but am having trouble accessing a value. Let's say I > have an object called $bob, and doing a print_r on $bob produces > this > > Array > ( Are you sure $bob is an object? It says above tha