我正在从Instagram中删除JSON:
$instagrams = json_decode($response)->data;
然后将变量解析为PHP数组以重新构造数据,然后重新编码并缓存文件:
file_put_contents($cache,json_encode($results));
当我打开缓存文件时,所有的正斜杠"/“都被转义了:
http:\/\/distilleryimage4.instagram.com\/410e7...
我从我的搜索中得知,json_encode()
会自动执行this...is,有什么方法可以禁用它吗?
https://stackoverflow.com/questions/10210338
复制相似问题