diff --git a/reference/classobj/functions/property-exists.xml b/reference/classobj/functions/property-exists.xml index c8984931f9..1a8d939773 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 was declared as public). + the specified class (and if it is accessible from the current scope). @@ -71,11 +71,16 @@ class myClass { public $mine; private $xpto; + + static function test() { + var_dump(property_exists('myClass', 'xpto')); // true, it can be accessed from here + } } 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 +myClass::test(); ?> ]]>