$params = json_decode(stripSlashes($_POST['p']), true);
在post过来的json数据如果要json_decode必须对post过来的数据stripSlashes下
本文介绍如何正确解析通过POST请求发送的JSON数据。为了避免潜在的slashes问题,文章强调了使用stripSlashes函数的重要性。
$params = json_decode(stripSlashes($_POST['p']), true);
在post过来的json数据如果要json_decode必须对post过来的数据stripSlashes下
3250

被折叠的 条评论
为什么被折叠?