How do I see the contents of an object?

How do I see the contents of an object?

am 27.11.2007 23:09:36 von laredotornado

Hi,

I'm using PHP 4.4.4. When I print out a particular value

print $err_component;

I'm told that it is an "Object". How do I dump the attributes and
values of this "Object"?

Thanks, - Dave

Re: How do I see the contents of an object?

am 27.11.2007 23:12:39 von ivansanchez-alg

laredotornado@zipmail.com wrote:

> I'm told that it is an "Object". How do I dump the attributes and
> values of this "Object"?

Try print_r(), or var_dump(). And do read the PHP manual on objects and
classes.

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Now listening to: Hooverphonic - Bar Lounge Classics: Deluxe Edition (disc
2) (2003) - [12] The World Is Mine (Eli Janney's Tight Remix (Edit)) (4:58)
(98.083298%)

Re: How do I see the contents of an object?

am 27.11.2007 23:12:40 von Jerry Stuckle

laredotornado@zipmail.com wrote:
> Hi,
>
> I'm using PHP 4.4.4. When I print out a particular value
>
> print $err_component;
>
> I'm told that it is an "Object". How do I dump the attributes and
> values of this "Object"?
>
> Thanks, - Dave
>

See var_dump() or print_r().

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================