title: Get usable array from a curl response, which is formatted as a php array
body: <pre><code>$ch = curl_init("url");
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS, "test"); 
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  curl_setopt($ch, CURLOPT_HEADER, 0);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  $outputArray = curl_exec($ch);
  </code></pre>
  
  <p>Then $outputArray will contain:</p>
  
  <pre><code>Array
  (
  [0] =&gt; Array
      (
          [r1] =&gt; test response
          [r2] =&gt; 4
          [r3] =&gt; 32
      )
  
  )
  </code></pre>
  
  <p>So I would think PHP can see that it's an array and treat it as such, but when I do something like </p>
  
  <pre><code>echo $outputCode[0][r_title]."\n";
  </code></pre>
  
  <p>it gives an error:</p>
  
  <pre><code>PHP Fatal error:  Cannot use string offset as an array in /www/test.php on line 75 
  </code></pre>
  
  <p>(line 75 being the echo one just above)</p>
  
  <p>What am I doing wrong?</p>