- unserialize: documentation ( source)
- serialize: documentation ( source)
<?php class A {
var $one = "111";
function __construct() { echo "construct";}
function __destruct() { echo "destruct";}
//function __wakeup() { echo "wakeup";}
}
$at = new A();
$x = serialize($at);
echo "after all";
$u = unserialize($x);
?>