title: Navigating a multidimensional array with dynamic
body: <p>I'm trying to figure out why it is that I cannot access the follow array with this statement:</p>
  
  <pre><code>var_dump($thevar[0]['product_id']);
  
  Array
  (
      [d142d425a5487967a914b6579428d64b] =&gt; Array
          (
              [product_id] =&gt; 253
              [variation_id] =&gt; 
              [variation] =&gt; 
              [quantity] =&gt; 1
              [data] =&gt; WC_Product Object
                  (
                      [id] =&gt; 253
                      [product_custom_fields] =&gt; Array
                          (
                              [_edit_last] =&gt; Array
                                  (
                                      [0] =&gt; 1
                                  )
  
                              [_edit_lock] =&gt; Array
                                  (
                                      [0] =&gt; 1345655854:1
                                  )
  
                              [_thumbnail_id] =&gt; Array
                                  (
                                      [0] =&gt; 102
                                  )
  </code></pre>
  
  <p>I can, however, access the 'product_id' using the dynamically created array name:</p>
  
  <pre><code>print_r($thevar['d142d425a5487967a914b6579428d64b']['product_id']);
  </code></pre>
  
  <p>The issue is, I don't know what that dynamic name is going to be on the fly...</p>