摘要:
PHP使用json_encode处理后为非标准json, 使用json_decode($json) 解析后会变成object类型json_decode()有第二个参数可以来处理,设置第二个参数为TRUE json_decode($json, TRUE)$array = array('name'=>'sean', 'age'=>12);$j_arr = json_encode($array);$j_arrs = json_decode($j_arr);//json_decode($json, TRUE)没有设置第二个参数时echo 阅读全文