note 100246 added to function.get-class-vars
| From: | ken at verango dot com | Date: | Mon, 04 Oct 2010 10:25:15 +0000 |
| Subject: | note 100246 added to function.get-class-vars | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172927@lists.php.net to get a copy of this message | ||
After extensive research I find that get_class_vars get_obejct_vars and reflection
get_default_peroperties all have the SAME handling with an array as property:
A class that has an array as a property for example:
Class A {
$messages = array();
$this->messages["Q"] = "TEST";
}
Note: Using any of the above methods to access the property will result in only the array elements
themselves being revealed. There Is no way to access the REAL property name $messages. Only Q and
TEST are revealed in all 3 methods.
----
Server IP: 64.71.164.2
Probable Submitter: 24.189.3.65
----
Manual Page -- http://www.php.net/manual/en/function.get-class-vars.php
Edit -- https://master.php.net/note/edit/100246
Del: integrated -- https://master.php.net/note/delete/100246/integrated
Del: useless -- https://master.php.net/note/delete/100246/useless
Del: bad code -- https://master.php.net/note/delete/100246/bad+code
Del: spam -- https://master.php.net/note/delete/100246/spam
Del: non-english -- https://master.php.net/note/delete/100246/non-english
Del: in docs -- https://master.php.net/note/delete/100246/in+docs
Del: other reasons-- https://master.php.net/note/delete/100246
Reject -- https://master.php.net/note/reject/100246
Search -- https://master.php.net/manage/user-notes.php