Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I see the contents of an object?

0 views
Skip to first unread message

laredo...@zipmail.com

unread,
Nov 27, 2007, 5:09:36 PM11/27/07
to
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

Iván Sánchez Ortega

unread,
Nov 27, 2007, 5:12:39 PM11/27/07
to
laredo...@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%)

Jerry Stuckle

unread,
Nov 27, 2007, 5:12:40 PM11/27/07
to

See var_dump() or print_r().

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

0 new messages