PHP Access JSON Array
<p>Can't get json_decode to work here:</p>

<pre><code>&lt;?php
$response = wp_remote_get( 'http://data.dnr.ne.gov/RealTime/api/6881500/2016/3/8/Discharge' );

$data = json_decode($response);
?&gt;

&lt;table&gt;
  &lt;tr&gt;
    &lt;th&gt;&lt;?php echo $data[0]; ?&gt;&lt;/th&gt;
  &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>var_dump($response); spits out the whole json object, so the API call is working fine.</p>

<p>Any help even accessing element 0 will be fantastic!</p>