how to output the result?
<pre><code>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
    )


 )
</code></pre>

<p>supposed the print_r($child) result is the above, how i want to echo  all the tid and the name, how should i do?</p>

<pre><code>foreach($child as $arr){
 foreach($arr as $key=&gt;$vaule)
{
...
</code></pre>

<p>i don't know how to loop out them.</p>
