反序 blog $2 序列化 nbsp post 序列 php replace
php 反序列化返回 false 解决方法
function mb_unserialize($serial_str) {
$serial_str = preg_replace(' ! s: (\d + ) : "(.*?)"; ! se', "'s:'.strlen('$2').':\"$2\";'", $serial_str);
$serial_str = str_replace("\r", "", $serial_str);
}
来源: http://www.bubuko.com/infodetail-2458226.html