function common_unserialize($str) { if(empty($str)){ return ''; } $str= preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $str ); $str= str_replace("\r", "", $str); return unserialize($str); }
peakswill
这个人很懒,什么都没留下