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