現在のドルレートを取得するために為替通貨APIを使用しています。コンテンツを取得するためにPHPコードを使用した後、印刷が括弧内にある後、
$url = "http://rate-exchange.appspot.com/currency?from=USD&to=PKR&q=1";
$result = file_get_contents($url);
echo $result;
// print as {"to": "PKR", "rate": 103.59473699999999, "from": "USD", "v": 103.59473699999999}
ドルレートだけを取得する正規表現の作り方。