note 27079 added to function.get-object-vars
| From: | info at phpken dot de | Date: | Fri, 22 Nov 2002 00:34:05 +0000 |
| Subject: | note 27079 added to function.get-object-vars | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39844@lists.php.net to get a copy of this message | ||
hello,
this example will look like all values of vars was set in your class. write a method like the name:
dumpClass and then fill in follow code:
$vars = get_object_vars($this);
echo "<b>class vars</b>";
foreach( $vars as $name => $value ) {
echo "<li>".$name." : ".$value;
}
look at: get_object_vars($this);
andreas v.l
--
http://www.php.net/manual/en/function.get-object-vars.php
http://master.php.net/manage/user-notes.php?action=edit+27079
http://master.php.net/manage/user-notes.php?action=delete+27079
http://master.php.net/manage/user-notes.php?action=reject+27079