- var_dump: documentation ( source)
<?php
class Foo
{
public $bar = 'barValue';
protected $baz = 'bazValue';
private $tab = 'tabValue';
}
$foo = new Foo();
$arrayFoo = (array) $foo;
var_dump($arrayFoo['*baz']);
var_dump($arrayFoo['Footab']);