I have a url, http://btcrate.com/convert?from=btc&to=usd&exch=mtgox&conv=xe&amount=0.01, which outputs {"converted": "1.300000300"}. I want to get the value of converted into a PHP value, so $usd = 1.300000300;.
I have tried the following, but it just outputs the whole string, although I just want the value of converted.
file_get_contents("http://btcrate.com/convert?from=btc&to=usd&exch=mtgox&conv=xe&amount=0.01");