PHP - Get a specific value in an array
        Posted  
        
            by 
                Charles Yeung
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Charles Yeung
        
        
        
        Published on 2011-01-10T08:51:34Z
        Indexed on 
            2011/01/10
            8:53 UTC
        
        
        Read the original article
        Hit count: 252
        
php
Hi
Suppose I have the code below:
    [taxonomy] => Array
    (
        [118] => stdClass Object
            (
                [tid] => 118
                [vid] => 4
                [name] => A
                [description] => 
                [weight] => 4
            )
        [150] => stdClass Object
            (
                [tid] => 150
                [vid] => 5
                [name] => B
                [description] => 
                [weight] => 0
            )
    )
How can I only get the tid number and exclude others, could someone please give me a suggestion?
Thanks you
© Stack Overflow or respective owner