$5 for 30 seconds work to a good PHP Programmer

Discussion in 'Programming' started by nickharper, Feb 13, 2009.

  1. #1
    I am really stuck with an array.

    A cutting of the print_r for this is below

    stdClass Object ( 
    
    [oCategoryTree] => stdClass Object ( 
    
    [oCategory] => Array ( 
    
    [0] => stdClass Object ( 
    [iId] => 97 [sName] => Clothing & Accessories 
    [sDescription] => Clothing & Accessories 
    [bAdult] => ) 
    
    [1] => stdClass Object ( 
    [iId] => 61 [sName] => Computers & Software 
    [sDescription] => Computers & Software 
    [bAdult] => ) 
    
    [2] => stdClass Object ( 
    [iId] => 4 [sName] => Electronics 
    [sDescription] => Electronics 
    [bAdult] => )
    PHP:
    I basically want to list all of the "sNames" so I can list categories.

    If you could PM me with help I will send payment with paypal.

    Thanks
     
    nickharper, Feb 13, 2009 IP
  2. Rom.as10

    Rom.as10 Well-Known Member

    Messages:
    151
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    118
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Hi :)

    I'll help you with that.

    Just add me to the messenger: rom_as10 AT hotmail.com

    Thanks, Rom :)
     
    Rom.as10, Feb 13, 2009 IP
  3. dowhile

    dowhile Active Member

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    If I'm understand correctly you want to loop through array and pick up "sName"?
     
    dowhile, Feb 13, 2009 IP