ReflectionClass::getDefaultProperties
Gets default properties
&reftitle.description;
public arrayReflectionClass::getDefaultProperties
Gets default properties from a class (including inherited properties).
This method only works for static properties when used on internal classes.
The default value of a static class property can not be tracked when using
this method on user defined classes.
&reftitle.parameters;
&no.function.parameters;
&reftitle.returnvalues;
An array of default properties, with the key being the name of
the property and the value being the default value of the property or &null;
if the property doesn't have a default value. The function does not distinguish
between static and non static properties and does not take visibility modifiers
into account.
&reftitle.examples;
ReflectionClass::getDefaultProperties example
getDefaultProperties());
?>
]]>
&example.outputs;
string(14) "staticProperty"
["property"]=>
string(15) "propertyDefault"
["privateProperty"]=>
string(22) "privatePropertyDefault"
["defaultlessProperty"]=>
NULL
["inheritedProperty"]=>
string(16) "inheritedDefault"
}
]]>
&reftitle.seealso;
ReflectionClass::getProperties
ReflectionClass::getStaticProperties
ReflectionClass::getProperty