title: How to reference this variable (nested objects/arrays)?
body: <p>I'm learning PHP and Drupal. I need to reference a variable contained in an array called $contexts.</p>
  
  <p>So <code>print_r($contexts)</code> gives me this:</p>
  
  <pre><code>Array ( 
     [context_view_1] =&gt; ctools_context Object ( 
         [type] =&gt; view 
         [view] =&gt; view Object ( 
            [db_table] =&gt; views_view 
            [result] =&gt; Array ( 
                [0] =&gt; stdClass Object ( 
                     [nid] =&gt; 28 
                     [node_data_field_display_field_display_value] =&gt; slideshow
                ) 
             )
  </code></pre>
  
  <p>eek confusing. I want to work with the node_data_field_display_field_display_value variable. I think my code needs to be like this, but I know this isn't right:</p>
  
  <pre><code>if ($contexts['context_view_1']['view']['result'][0]
  ['node_data_field_display_field_display_value'] == 'slideshow') then do whatever...
  </code></pre>
  
  <p>Thanks!</p>