- var_dump: documentation ( source)
- var_export: documentation ( source)
<?php
class Foo
{
protected $bar;
private $foo;
}
$foo = new Foo();
var_export($foo);
var_export((array) $foo);
var_dump(
$foo->{"\0*\0bar"},
$foo->{"\0Foo\0foo"}
);
$foo->{"\0*\0bar"} = 'baz';
$foo->{"\0Foo\0foo"} = 'bar';
var_dump(array($foo));