title: access element in nested array PHP - array to string conversion error
body: <p>I need have an array structured like so</p>
  
  <pre><code>Array
   (
      [id] =&gt; 
      [name] =&gt; 
      [description] =&gt; 
      [table_id] =&gt; 
      [records] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [id] =&gt; 
                      [table_id] =&gt; 
                      [created] =&gt; 2016-01-15T09:19:36-0700
                      [updated] =&gt; 
                      [created_by] =&gt; 
                      [updated_by] =&gt; 
                      [fields] =&gt; Array
                          (
                              [created] =&gt; 
                              [Delivery Date] =&gt; 
                              [Total Price Including Shipping] =&gt;
                              [Enquiry Status] =&gt; 
                              [Equipment Booked 1] =&gt;
                              [Equipment Booked 2] =&gt; 
                              [Equipment Booked 3] =&gt; 
                              [Equipment Booked 4] =&gt; 
                              [Equipment Booked 5] =&gt;
                              [Equipment Booked 6] =&gt;
                              [Surname] =&gt; 
                          )
  
                  )
  
          )
  
      [record_count] =&gt; 1
  )
  </code></pre>
  
  <p>I need to extract the [created] field from the last element of the nested array in [records]. 
  I've tried doing the following</p>
  
  <pre><code>$target_elems = $target.['record_count'];
  //print_r($target_elems);
  
  //echo $target_elems;
  //echo $target.['records'].[$target_elems].['created'];
  echo '&lt;pre&gt;'; print_r($target); echo '&lt;pre/&gt;';
  </code></pre>
  
  <p>bur I always get Array to String conversion error (commented lines have been tested obviously).</p>
  
  <p>the only generated output is</p>
  
  <pre><code>ArrayArrayArrayArray
  </code></pre>