|
ReflectionProperty::isInitializedChecks whether a property is initialized Description
public bool ReflectionProperty::isInitialized(objectnull
$object = null )Checks whether a property is initialized. Parameters
Return Values
Returns Errors/ExceptionsThrows a ReflectionException if the property is inaccessible. You can make a protected or private property accessible using ReflectionProperty::setAccessible. Changelog
ExamplesExample #1 ReflectionProperty::isInitialized example
The above example will output: bool(false) bool(true) See Also
|