- unserialize: documentation ( source)
- serialize: documentation ( source)
<?php
class test {
public $yo = 'boobies';
public function getYo () {
print $this->yo;
}
}
$a = new test();
$s = serialize($a);
$b = unserialize($s);
$b->getYo();