From ecd61e228d35dd76999cc098e9d0e7f4441215ec Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 19 Aug 2008 10:59:38 +0000 Subject: [PATCH] - Added information about the changed behavior git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@265120 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../classobj/functions/property-exists.xml | 33 ++++++++++++++++--- 1 file changed, 29 insertions(+), 4 deletions(-) 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(); ?>