title: List JSON Array data with float value in a foreach loop
body: <p>How can I properly list this JSON array using a <code>foreach</code> loop? After using <code>file_get_contents</code>, <code>json_decode</code> and <code>var_dump</code> from this API URL:</p>
  
  <pre class="lang-none prettyprint-override"><code>https://min-api.cryptocompare.com/data/pricemulti?fsyms=BTC,ETH,LTC,XRP,DASH,XMR,ZEC&amp;tsyms=PHP
  </code></pre>
  
  <p>this is what I get:</p>
  
  <pre class="lang-none prettyprint-override"><code>array(7) {
      ["BTC"]=&gt; array(1) { ["PHP"]=&gt; float(62127.29) }
      ["ETH"]=&gt; array(1) { ["PHP"]=&gt; float(2488.82) }
      ["LTC"]=&gt; array(1) { ["PHP"]=&gt; float(746.77) }
      ["XRP"]=&gt; array(1) { ["PHP"]=&gt; float(1.58) }
      ["DASH"]=&gt; array(1) { ["PHP"]=&gt; float(3559.27) }
      ["XMR"]=&gt; array(1) { ["PHP"]=&gt; float(999.01) }
      ["ZEC"]=&gt; array(1) { ["PHP"]=&gt; float(3455.52) }
  }
  </code></pre>
  
  <p>Then I listed the data using a <code>foreach</code> loop:</p>
  
  <pre><code>foreach($json as $cc =&gt; $value) {
      echo '&lt;br/&gt;'. $cc.' : '. $value;
  }
  </code></pre>
  
  <p>I get this:</p>
  
  <pre class="lang-none prettyprint-override"><code>BTC : Array
  ETH : Array
  LTC : Array
  XRP : Array
  DASH : Array
  XMR : Array
  ZEC : Array
  </code></pre>
  
  <p>What should I do to display something like this?</p>
  
  <pre class="lang-none prettyprint-override"><code>BTC : 62,127.29
  ETH : 2488.82
  LTC : 746.77
  XRP : 1.58
  DASH : 3559.27
  XMR : 999.01
  ZEC : 3455.52
  </code></pre>