Advertisement
Guest User

Untitled

a guest
May 16th, 2019
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. $url = "https://jsonblob.com/api/jsonBlob/b80b1b40-77a7-11e9-8a3e-4b473af1ffc6";
  2.  
  3. $dat = file_get_contents($url);
  4.  
  5. $d = json_decode($dat,true);  
  6.  
  7.  
  8. $_GET["name"];
  9.  
  10. $calcul = $_GET['name']/$d['usd'] ;
  11.  
  12. $obj = (object)[
  13.     'usd' => "$calcul"
  14. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement