title: Can't echo JSON Array in PHP
body: <p>I can't access my json and would like to know where the error is.</p>
  
  <pre><code>$json = json_encode($data);
  // string(1065) "[{"id":"test123","key":["one",...
  </code></pre>
  
  <p>Then I decode it to make it accessable via this command:</p>
  
  <pre><code>$json = json_decode($json, true);
  
  // Output:
  array(3) {
    [0]=&gt;
    array(4) {
      ["id"]=&gt;
      string(14) "test123"
  </code></pre>
  
  <p>When I want to echo it, it gives me:</p>
  
  <pre><code>echo $json[0];
  </code></pre>
  
  <blockquote>
    <p>Array to string conversion in</p>
  </blockquote>