title: how to get taxonomy children id in drupal
body: <p>I have a taxonomy parent tid '8'</p>
  
  <p>I need to get all child tid for this parent id</p>
  
  <pre><code>$tid = 8;
  
  $children = taxonomy_get_children($tid);
  
  print_r($children); 
  </code></pre>
  
  <p>am getting this result</p>
  
  <pre><code>8
  
  Array
  (
  [9] =&gt; stdClass Object
      (
          [tid] =&gt; 9
          [vid] =&gt; 3
          [name] =&gt; Domestic 
          [description] =&gt; Domestic 
          [weight] =&gt; 0
      )
  
  [12] =&gt; stdClass Object
      (
          [tid] =&gt; 12
          [vid] =&gt; 3
          [name] =&gt; Economic 
          [description] =&gt; Economic 
          [weight] =&gt; 1
      )
  
  [11] =&gt; stdClass Object
      (
          [tid] =&gt; 11
          [vid] =&gt; 3
          [name] =&gt; International
          [description] =&gt; 
          [weight] =&gt; 2
      )
  
  [10] =&gt; stdClass Object
      (
          [tid] =&gt; 10
          [vid] =&gt; 3
          [name] =&gt; Social 
          [description] =&gt; 
          [weight] =&gt; 3
      )
  
   )
  </code></pre>
  
  <p>how can I display only tid from this array. </p>