cvs: phpdoc /en/reference/classobj/functions property-exists.xml

From: Date: Tue, 19 Aug 2008 11:13:12 +0000
Subject: cvs: phpdoc /en/reference/classobj/functions property-exists.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2052@lists.php.net to get a copy of this message
felipe Tue Aug 19 11:13:12 2008 UTC Modified files: /phpdoc/en/reference/classobj/functions property-exists.xml Log: - Improved example http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/classobj/functions/property-exists.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/classobj/functions/property-exists.xml diff -u phpdoc/en/reference/classobj/functions/property-exists.xml:1.8 phpdoc/en/reference/classobj/functions/property-exists.xml:1.9 --- phpdoc/en/reference/classobj/functions/property-exists.xml:1.8 Tue Aug 19 10:59:38 2008 +++ phpdoc/en/reference/classobj/functions/property-exists.xml Tue Aug 19 11:13:12 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <refentry xml:id="function.property-exists" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>property_exists</refname> @@ -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 @@ 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(); ?>

« previous php.doc.cvs (#2052) next »