note 109347 added to function.get-object-vars
| From: | Anonymous | Date: | Mon, 09 Jul 2012 16:51:27 +0000 |
| Subject: | note 109347 added to function.get-object-vars | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-189074@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);
http://www.rxgs.com
andreas v.l
----
Server IP: 69.147.83.197
Probable Submitter: 85.17.93.6
----
Manual Page -- http://www.php.net/manual/en/function.get-object-vars.php
Edit -- https://master.php.net/note/edit/109347
Del: integrated -- https://master.php.net/note/delete/109347/integrated
Del: useless -- https://master.php.net/note/delete/109347/useless
Del: bad code -- https://master.php.net/note/delete/109347/bad+code
Del: spam -- https://master.php.net/note/delete/109347/spam
Del: non-english -- https://master.php.net/note/delete/109347/non-english
Del: in docs -- https://master.php.net/note/delete/109347/in+docs
Del: other reasons-- https://master.php.net/note/delete/109347
Reject -- https://master.php.net/note/reject/109347
Search -- https://master.php.net/manage/user-notes.php