抓取某APP的接口数据时候,有时候会出现反斜杠,需要处理一下。PHP处理时需要先去掉反斜杠,然后再json_decode.
$html=stripslashes(https_get($url));
$data=json_decode($html,true);
stripslashe(); 函数不错 Mark一下
抓取某APP的接口数据时候,有时候会出现反斜杠,需要处理一下。PHP处理时需要先去掉反斜杠,然后再json_decode.
$html=stripslashes(https_get($url));
$data=json_decode($html,true);
stripslashe(); 函数不错 Mark一下