title: Get element from array php
body: <pre><code>array (size=1)
    29 =&gt; 
      object(stdClass)[300]
        public 'term_id' =&gt; string '29' (length=2)
        public 'name' =&gt; string 'Advertisement' (length=13)
        public 'slug' =&gt; string 'advertisement' (length=13)
        public 'term_group' =&gt; string '0' (length=1)
        public 'term_taxonomy_id' =&gt; string '32' (length=2)
        public 'taxonomy' =&gt; string 'wp_portfolio_categories' (length=23)
        public 'description' =&gt; string '' (length=0)
        public 'parent' =&gt; string '27' (length=2)
        public 'count' =&gt; string '3' (length=1)
        public 'object_id' =&gt; string '536' (length=3)
  </code></pre>
  
  <p>I must get term_id value I can do this with <code>$var[29]-&gt;term_id</code> but I not know about this element 29, are any solution to get <code>term_id</code> ar <code>29</code> number</p>