note 100246 deleted from function.get-class-vars by danbrown
| From: | danbrown@php.net | Date: | Mon, 04 Oct 2010 15:02:49 +0000 |
| Subject: | note 100246 deleted from function.get-class-vars by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172937@lists.php.net to get a copy of this message | ||
Note Submitter: ken at verango dot com
----
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.