[{"id":"26","answer":[{"option":"4","text":"Hello
"}],"type":"3"}]
$json = preg_replace('/\r|\n/','\n',trim($json));
$jason_array = json_decode($json,true);
通过PHP解决JSON中的换行符 回车
最新推荐文章于 2023-12-19 23:06:22 发布
[{"id":"26","answer":[{"option":"4","text":"Hello
"}],"type":"3"}]
$json = preg_replace('/\r|\n/','\n',trim($json));
$jason_array = json_decode($json,true);