|
ReflectionProperty::getValueGets value Beschreibung
public mixed ReflectionProperty::getValue
([ object
$object
] )Gets the property's value. Parameter-Liste
RückgabewerteThe current value of the property. Fehler/ExceptionsThrows a ReflectionException if the property is inaccessible. You can make a protected or private property accessible using ReflectionProperty::setAccessible. Beispiele
Beispiel #1 ReflectionProperty::getValue example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: string(6) "foobar" string(6) "barfoo" string(6) "foofoo" Siehe auch
|