|
ReflectionClass::getDefaultPropertiesGets default properties Beschreibung
public array ReflectionClass::getDefaultProperties
( void
)
Gets default properties from a class (including inherited properties).
Parameter-ListeDiese Funktion hat keine Parameter. Rückgabewerte
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 Beispiele
Beispiel #1 ReflectionClass::getDefaultProperties example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
array(5) {
["staticProperty"]=>
string(14) "staticProperty"
["property"]=>
string(15) "propertyDefault"
["privateProperty"]=>
string(22) "privatePropertyDefault"
["defaultlessProperty"]=>
NULL
["inheritedProperty"]=>
string(16) "inheritedDefault"
}
Siehe auch
|