A friend asked me a simple code to grab values from a website, no problem. This website is using a json API, again, no problem.
But, after parsing results I figured values were all wrong.
Example:
A value on the json is 846.51, but my script is returning 844.71.
My current "code":
$data = file_get_contents('https://blockchain.info/fr/ticker');
$json = json_decode($data);
print_r($json->{'USD'}->{'15m'});
So, I searched and i found out it may be a php bug related to x64 processors, not sure.
Any workaround to fix this ?