note 46904 deleted from language.oop5.visibility by nlopess
| From: | nlopess@php.net | Date: | Thu, 04 Nov 2004 19:49:22 +0000 |
| Subject: | note 46904 deleted from language.oop5.visibility by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79636@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Notice that visibility has an effect on foreach (iterating an object) and get_object_vars
if you do them externally you'll only get public members, HOWEVER, if you do them INSIDE a
class, on this, or even in a static method on an object, you will have access to ALL MEMBERS the
method would have access to.
In otherwords, if you foreach this you'll get private and protected as well as public.