php接收josn过滤html标识转为数组

$array=json_decode(htmlspecialchars_decode($json),true);
htmlspecialchars_decode()过滤html标识
json_decode()第二个参数设置为true转array,false转object


posted on 2020-06-11 19:52  沉淀物  阅读(107)  评论(0)    收藏  举报

导航