RE: [PHP] Accessing the values of objects
| From: | Michael Sims | Date: | Mon, 10 May 2004 18:26:14 +0000 |
| Subject: | RE: [PHP] Accessing the values of objects | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185826@lists.php.net to get a copy of this message | ||
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 that it's an array. If $bob were an
object, print_r() should give "objectname Object" instead of "Array".