json_decode时含有中文是解码问题(json_decode返回为null)

function myDecode($str){
    $str = substr(str_replace('"','"',json_encode($str)),1,-1);
    return json_decode($str);  
}
原文地址:https://www.cnblogs.com/share123/p/4760420.html