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 ?>
1.4m articles
1.4m replys
5 comments
57.0k users