var_dump() without show protected and private property
<p>Is there any functions or how to var_dump() object without showing it protected and private property?</p>

<p>example:</p>

<pre><code>class foo {
    public $public = 'public';
    protected $protected = 'protected';
    private $private = 'private';
}

$Foo = new foo;
var_dump($Foo);
// Expected output "(string) public"
</code></pre>
