Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $typeid=491;
- $url="http://api.eve-central.com/api/marketstat?regionlimit=10000002&typeid=".$typeid;
- $pricexml=file_get_contents($url);
- $xml=new SimpleXMLElement($pricexml);
- $item=$xml->xpath('/evec_api/marketstat/type[@id='.$typeid.']/sell');
- $price= (float) $item[0]->percentile;
- $price=round($price,2);
- echo $price;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement