$strUrl = "https://api.huobi.pro/market/history/kline?symbol=btcusdt&period=60min&size=25"; $file = file_get_contents($strUrl); $file = mb_convert_encoding($file, 'UTF8', 'ASCII,JIS,UTF-8,EUC-JP,SJIS-WIN'); $asdf = json_decode($file,true); echo "<PRE>"; print_r($asdf); echo "</PRE>";'
上記コードで配列出力がされません。
取得URLを
$strUrl = "https://api.huobipro.com/market/detail/merged?symbol=btcusdt";
とすると上記コードでも正常出力されるので悩んでおります。
ご教授のほどよろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー