title: how to echo fixer.io json php
body: <p>Hi I'm trying get a json from fixer.io and then for each rates echo it but cant get it to work. 
   the code are</p>
  
  <pre><code>&lt;?php
  
      function usd(){
        echo 'HEJ test';
        $fixer_access_key = my_access_key;
        $url= 'https://data.fixer.io/api/latest?access_key=' . $fixer_access_key;
        echo $url;  
        $json = file_get_contents($url);
        $data = json_decode($json);
          echo $url . "&lt;br&gt;";
                  echo 'printing json foreach &lt;br&gt;';
          foreach($data as $obj){
              echo '...';
              $prefix = $obj;
              echo $prefix;
              echo '&lt;br&gt;';}
  echo 'done printing json foreach';
  }
  usd();  ?&gt;
  </code></pre>
  
  <p>and the result are:</p>
  
  <p><a href="https://data.fixer.io/api/latest?access_key=my_fixer_key" rel="nofollow noreferrer">https://data.fixer.io/api/latest?access_key=my_fixer_key</a></p>
  
  <p>printing json foreach</p>
  
  <p>done printing json foreach</p>