[{"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中的换行符 回车
最新推荐文章于 2024-04-28 13:46:58 发布
[{"id":"26","answer":[{"option":"4","text":"Hello
"}],"type":"3"}]
$json = preg_replace('/\r|\n/','\n',trim($json));
$jason_array = json_decode($json,true);