|
ReflectionProperty::getValueGets value Description
public mixed ReflectionProperty::getValue
([ object
$object
] )Gets the properties value. Parameters
Return ValuesThe current value of the property. Errors/ExceptionsThrows a ReflectionException if the property is inaccessible. You can make a protected or private property accessible using ReflectionProperty::setAccessible. Examples
Example #1 ReflectionProperty::getValue example
<?php The above example will output: string(6) "foobar" string(6) "barfoo" string(6) "foofoo" See Also
|