|
ReflectionProperty::hasDefaultValueChecks if property has a default value declared Description
public bool ReflectionProperty::hasDefaultValue()
Checks whether the property was declared with a default value, including an implicit
ParametersThis function has no parameters. Return Values
If the property has any default value (including Examples
Example #1 ReflectionProperty::hasDefaultValue example
The above example will output: bool(true) bool(false) bool(true) bool(false) bool(false) Fatal error: Uncaught ReflectionException: Property Foo::$pong does not exist in example.php See Also
|