title: Access object within foreach loop
body: <p>I've got a list of objects:</p>
  
  <pre><code> 0 =&gt; 
      object(stdClass)[550]
        public 'node_title' =&gt; string 'Test' (length=4)
        public 'nid' =&gt; string '1473' (length=4)
        public 'node_language' =&gt; string 'nl' (length=2)
    1 =&gt; 
      object(stdClass)[552]
        public 'node_title' =&gt; string 'Test2' (length=5)
        public 'nid' =&gt; string '1321' (length=4)
        public 'node_language' =&gt; string 'nl' (length=2)
    2 =&gt; 
      object(stdClass)[553]
        public 'node_title' =&gt; string 'Test3' (length=5)
        public 'nid' =&gt; string '602' (length=3)
        public 'node_language' =&gt; string 'nl' (length=2)
  </code></pre>
  
  <p>And I loop over them using a foreach loop:  </p>
  
  <pre><code>foreach($view-&gt;result as $key =&gt; $value) {
  
  }
  </code></pre>
  
  <p>So, if every time the foreach loops, 1 object is fetched, right?<br>
  But how can I access one item of the object? I've tried with <code>0-&gt;nid</code>, <code>$key-&gt;nid</code>,... but nothing worked... How can I do so?</p>