diff --git a/reference/reflection/reflectionproperty/isdefault.xml b/reference/reflection/reflectionproperty/isdefault.xml index 18c24dbbab..98207c8723 100644 --- a/reference/reflection/reflectionproperty/isdefault.xml +++ b/reference/reflection/reflectionproperty/isdefault.xml @@ -4,7 +4,7 @@ ReflectionProperty::isDefault - Checks if default value + Checks if property is a default property @@ -32,6 +32,41 @@ + + &reftitle.examples; + + + <methodname>ReflectionClass::isDefault</methodname> example + +getProperty('bar'); +var_dump($rp->isDefault()); + +$o = new Foo(); +$o->baz = 42; +$ro = new ReflectionObject($o); +$rp = $ro->getProperty('baz'); +var_dump($rp->isDefault()); +?> +]]> + + &example.outputs; + + + + + + + &reftitle.seealso;