I was wondering if there was any way to make a Parser in PHP in which gets the values from this site https://btc-e.com/api/2/btc_usd/ticker and sets them as variables in php code?
https://btc-e.com/api/2/btc_usd/ticker
I have looked at php parsers a bit and the only thing I found was parsers that echo all the information on a website.
Since that URL returns a JSON response:
JSON
<?php $content=file_get_contents("https://btc-e.com/api/2/btc_usd/ticker"); $data=json_decode($content); //do whatever with $data now ?>
2.1m questions
2.1m answers
60 comments
57.0k users