Re: Accessing the values of objects
| From: | Richard Davey | Date: | Mon, 10 May 2004 18:30:03 +0000 |
| Subject: | Re: Accessing the values of objects | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185827@lists.php.net to get a copy of this message | ||
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]
That isn't an Object :)
Maybe the object function you called returned an array? You'd treat
the data you posted as a normal array.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html