0
cURLを使用してブロックチェーンからビットコインウォレットの合計USD値を取得しようとしています。ここに私のコードです:PHPカールを使用してブロックチェーンからデータを抽出する
$content2 = file_get_contents("https://blockchain.info/address/1HoB5A1HBbnB3b5gQZ6U78JzA7Hqk9WWYx?currency=USD");
preg_match('#<span data-c="([0-9\.]*)">$ ([0-9\.]*)</span>#Uis', $content2, $USDmatch);
$usd = $USDmatch[0];
echo "Total USD: $usd";
可能な重複http://stackoverflow.com/questions/3577641/how-do-you-parse-and-process-html- xml-in-php) –