PHP Serialize序列化转换

<?php
//序列化转换PHP参考代码
echo json_encode(unserialize($var));  //序列化转换Json
echo var_export(unserialize($var));  //序列化转换Array
echo serialize(json_decode($var, true));  //Json转换序列化
echo var_export(json_decode($var, true));  //Json转换Array 
?>