Re: protected/private access and var_dump/print_r
| From: | Derick Rethans | Date: | Tue, 18 May 2004 07:47:29 +0000 |
| Subject: | Re: protected/private access and var_dump/print_r | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9927@lists.php.net to get a copy of this message | ||
On Mon, 17 May 2004, Sara Golemon wrote:
> var_dump($someobject); shows only public properties (as I'd expect), but
> print_r($someobject) shows all properties (explicitly identifying
> protected/private props).
>
> Am I wrong in thinking that's not right?
I think the current way is perfectly alright.
regards,
Derick