From 6fd67789203b106e88879c86e1514666b28a3bbd Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 19 Aug 2008 11:13:12 +0000 Subject: [PATCH] - Improved example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@265122 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/classobj/functions/property-exists.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reference/classobj/functions/property-exists.xml b/reference/classobj/functions/property-exists.xml index 3dc56c568f..12b5d75c70 100755 --- a/reference/classobj/functions/property-exists.xml +++ b/reference/classobj/functions/property-exists.xml @@ -1,5 +1,5 @@ - + property_exists @@ -92,6 +92,7 @@ class myClass { public $mine; private $xpto; + static protected $test; static function test() { var_dump(property_exists('myClass', 'xpto')); //true @@ -100,8 +101,9 @@ class myClass { var_dump(property_exists('myClass', 'mine')); //true var_dump(property_exists(new myClass, 'mine')); //true -var_dump(property_exists('myClass', 'xpto')); //true +var_dump(property_exists('myClass', 'xpto')); //true, as of PHP 5.3.0 var_dump(property_exists('myClass', 'bar')); //false +var_dump(property_exists('myClass', 'test')); //true, as of PHP 5.3.0 myClass::test(); ?>