Re: Re: print_r, var_dump and private properties in PHP5

From: Date: Tue, 24 Jan 2006 22:32:41 +0000
Subject: Re: Re: print_r, var_dump and private properties in PHP5
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969371734@lists.php.net to get a copy of this message
Hello Mark, > > http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/var/functions/print-r.xml?view=log > see the comment to revision 1.10 thanks for your reply, but imho that doesn't really answer my question. It was changed from > also show protected and private properties of objects with PHP 5, on > the contrary to <function>var_dump</function>. to > also show protected and private properties of objects with PHP 5. But, it still *implies* that var_dump() should behave in another way, like hide the private properties. To clarify it, there should be something like: > var_dump(), print_r() and var_export() all show the private.... And the question remains if there is a way to dump only public properties and if not, why so? :) Greetings, Florian

« previous php.doc (#969371734) next »