note 114729 added to reflectionproperty.isdefault

From: Date: Sun, 30 Mar 2014 06:42:30 +0000
Subject: note 114729 added to reflectionproperty.isdefault
Groups: php.notes 
Request: Send a blank email to php-notes+get-199073@lists.php.net to get a copy of this message
For clarification, this isn't checking if the value is the default value, it's checking if the property is. The description wasn't as clear as the notes in return. For example: <?php class A{ public $foo = 'bar'; } $a = new A(); $a->foo = 'nope'; $a->new_prop = 'Hello World'; // assume $a_ref_* are your reflection property classes echo $a_ref_foo->isDefault(); // TRUE even though we changed the value, the property is a default property echo $a_ref_new_prop->isDefault();// FALSE we added the new_prop property, it's not default ?> ---- Server IP: 64.71.164.2 Probable Submitter: 24.180.121.182 ---- Manual Page -- http://php.net/manual/en/reflectionproperty.isdefault.php Edit -- https://master.php.net/note/edit/114729 Del: integrated -- https://master.php.net/note/delete/114729/integrated Del: useless -- https://master.php.net/note/delete/114729/useless Del: bad code -- https://master.php.net/note/delete/114729/bad+code Del: spam -- https://master.php.net/note/delete/114729/spam Del: non-english -- https://master.php.net/note/delete/114729/non-english Del: in docs -- https://master.php.net/note/delete/114729/in+docs Del: other reasons-- https://master.php.net/note/delete/114729 Reject -- https://master.php.net/note/reject/114729 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199073) next »