Drupal/PHP - Get a specific value in an array
<p>Hi<br />
Suppose I have the code below:</p>

<pre><code>    [taxonomy] =&gt; Array
    (
        [118] =&gt; stdClass Object
            (
                [tid] =&gt; 118
                [vid] =&gt; 4
                [name] =&gt; A
                [description] =&gt; 
                [weight] =&gt; 4
            )

        [150] =&gt; stdClass Object
            (
                [tid] =&gt; 150
                [vid] =&gt; 5
                [name] =&gt; B
                [description] =&gt; 
                [weight] =&gt; 0
            )

    )
</code></pre>

<p>How can I only get the tid number and exclude others, could someone please give me a suggestion?</p>

<p>Thanks you</p>
