我有一个 curl 命令,它输出以下内容:
"{"meta":{"code":200},"data":{"username":"monstore","bio":"Art clothing line with our life scary tales as the imagination. info@heymonstore.com \/ +6281213162069 \/ BB PIN 293A4565","website":"http:\/\/www.heymonstore.com","profile_picture":"http:\/\/images.ak.instagram.com\/profiles\/profile_4472462_75sq_1354349840.jpg","full_name":"Monstore","counts":{"media":547,"followed_by":6472,"follows":129},"id":"4472462"}}"
这是 curl 命令:
$output = curl_exec($ch);
基本上以上就是 $output 打印出来的内容。所以我试图通过这样做来解码:
$userinfo = json_decode($output, false);
但是它返回一个空数组。知道为什么吗?