// Initialize session and set URL.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://blockchain.info/address/YOURADDRESSHERE?format=json");
// Set so curl_exec returns the result instead of outputting it.
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20);
curl_setopt($ch, CURLOPT_TIMEOUT, 10); // timeout in seconds
// Get the response and close the channel.
$response = curl_exec($ch);
curl_close($ch);
$responseObj = json_decode($response);
print_r($responseObj);