- var_dump: documentation ( source)
- json_decode: documentation ( source)
- json_encode: documentation ( source)
<?php
class Foo {
public $bar = 'barValue';
protected $baz = 'bazValue';
private $tab = 'tabValue';
}
$tt = new Foo();
var_dump( json_decode(json_encode($tt), true));