|
ReflectionClass::getDefaultPropertiesGets default properties Description
public array ReflectionClass::getDefaultProperties
( void
)
Gets default properties from a class (including inherited properties).
ParametersThis function has no parameters. Return Values
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 Examples
Example #1 ReflectionClass::getDefaultProperties example
<?php The above example will output: array(5) { ["staticProperty"]=> string(14) "staticProperty" ["property"]=> string(15) "propertyDefault" ["privateProperty"]=> string(22) "privatePropertyDefault" ["defaultlessProperty"]=> NULL ["inheritedProperty"]=> string(16) "inheritedDefault" } See Also
|