loop over this array
<pre><code>(
[0] =&gt; stdClass Object
    (
        [term_id] =&gt; 22
        [name] =&gt; Data Management
        [slug] =&gt; data-management
        [term_group] =&gt; 0
        [term_taxonomy_id] =&gt; 22
        [taxonomy] =&gt; topic
        [description] =&gt; 
        [parent] =&gt; 0
        [count] =&gt; 1
    )

[1] =&gt; stdClass Object
    (
        [term_id] =&gt; 24
        [name] =&gt; High Frequency Travel
        [slug] =&gt; high-frequency-travel
        [term_group] =&gt; 0
        [term_taxonomy_id] =&gt; 24
        [taxonomy] =&gt; topic
        [description] =&gt; 
        [parent] =&gt; 0
        [count] =&gt; 1
    )
</code></pre>

<p>)</p>

<p>And i want to get at the name entry.</p>

<p>I'm trying:</p>

<pre><code>foreach ($topicArr as $i =&gt; $row) {
   echo $row['name'];
}
</code></pre>

<p>but i get an error saying Cannot use object of type stdClass as array in....I'm really not sure how I get around it.</p>

<p>Any ideas?</p>
