-5
これはJSONデータこのJSONデータをPHPでどのように投稿するのですか?異なるこのJSONは
{"clanSearch":{"results":[{"tag":"#G90G8RCU","name":"codex2015.asia","type":"open","locationName":"Indonesia","clanBadgeImg":{"s":"https://api-assets.clashofclans.com/badges/70/FDduXa8Fmz_KmJyPsFTTms00YDykkmlZRu4ev-juBQQ.png, https://api-assets.clashofclans.com/badges/200/FDduXa8Fmz_KmJyPsFTTms00YDykkmlZRu4ev-juBQQ.png 2x","m":"https://api-assets.clashofclans.com/badges/200/FDduXa8Fmz_KmJyPsFTTms00YDykkmlZRu4ev-juBQQ.png, https://api-assets.clashofclans.com/badges/200/FDduXa8Fmz_KmJyPsFTTms00YDykkmlZRu4ev-juBQQ.png 2x","l":"https://api-assets.clashofclans.com/badges/200/FDduXa8Fmz_KmJyPsFTTms00YDykkmlZRu4ev-juBQQ.png","xl":"https://api-assets.clashofclans.com/badges/200/FDduXa8Fmz_KmJyPsFTTms00YDykkmlZRu4ev-juBQQ.png"},"warFrequency":"always","clanLevel":1,"clanPoints":6867,"warWins":0,"requiredTrophies":0,"members":12}]}}
Here is the link
。この場合、私のPHPコード
$json = json_decode(file_get_contents("https://set7z18fgf.execute-api.us-east-1.amazonaws.com/prod/?route=getClanSearch&name=codex2015.asia"));
$info = "$json->{'tag'}";
echo $info;
ですが、私は、タグデータを取得したいが、私はこのスクリプトを実行する場合、私は何も得ます。
。あなたの質問は何ですか? –
このjson diferent –
実際に何をしたいですか? – srmilon