- var_dump: documentation ( source)
- unserialize: documentation ( source)
- serialize: documentation ( source)
<?php
class test {
public $publ = 42;
private $priv = 41;
protected $prot = 40;
}
var_dump(unserialize(serialize(new test())));
class test2 extends ArrayObject {
public $publ = 42;
private $priv = 41;
protected $prot = 40;
}
var_dump(unserialize(serialize(new test2())));