http://btcrate.com/convert?from=btc&to=usd&exch=mtgox&conv=xe&amount=0.01
を出力する URL があります{"converted": "1.300000300"}
。の値をPHP値に変換したいので、$usd = 1.300000300;
.
私は次のことを試しましたが、変換された値が欲しいだけですが、文字列全体を出力するだけです。
file_get_contents("http://btcrate.com/convert?from=btc&to=usd&exch=mtgox&conv=xe&amount=0.01");