diff --git a/reference/classobj/functions/property-exists.xml b/reference/classobj/functions/property-exists.xml index e276d30a29..3dc56c568f 100755 --- a/reference/classobj/functions/property-exists.xml +++ b/reference/classobj/functions/property-exists.xml @@ -1,5 +1,5 @@ - + property_exists @@ -16,7 +16,7 @@ This function checks if the given property exists in - the specified class (and if it is accessible from the current scope). + the specified class. @@ -56,6 +56,30 @@ &null; in case of an error. + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.3.0 + + This function checks the existence of a property independent of + accessibility. + + + + + + + &reftitle.examples; @@ -70,13 +94,14 @@ class myClass { private $xpto; static function test() { - var_dump(property_exists('myClass', 'xpto')); // true, it can be accessed from here + var_dump(property_exists('myClass', 'xpto')); //true } } var_dump(property_exists('myClass', 'mine')); //true var_dump(property_exists(new myClass, 'mine')); //true -var_dump(property_exists('myClass', 'xpto')); //false, isn't public +var_dump(property_exists('myClass', 'xpto')); //true +var_dump(property_exists('myClass', 'bar')); //false myClass::test(); ?>