RE: [PHP] Easy Object Reading
| From: | Stewart Taylor | Date: | Tue, 20 Mar 2001 13:33:16 +0000 |
| Subject: | RE: [PHP] Easy Object Reading | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-44737@lists.php.net to get a copy of this message | ||
You could try
echo serialize($object_var);
to display the object in it's serialized form.
-Stewart
-----Original Message-----
From: Thorsten Viel [mailto:tviel@hw-interactive.de]
Sent: 20 March 2001 12:59
To: php-general@lists.php.net
Subject: [PHP] Easy Object Reading
Hi,
does somebody know a function where I can read all variables of an object
independent of there name?
I have to test with large classes, more than 30 vars per class, and dont
want to implement a function just for testing.
I want to echo all values of vars of a class without specifyieng explicitly
every single varname.
Hope somebody can help me.
Thanks
Thorsten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net