Re: Accessing the values of objects

From: Date: Mon, 10 May 2004 18:35:23 +0000
Subject: Re: Accessing the values of objects
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-185828@lists.php.net to get a copy of this message
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 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($bob), it does start.... bob Object ( blah ..... -- John C. Nichel KegWorks.com 716.856.9675 john@kegworks.com

« previous php.general (#185828) next »