I cannot figure out to get these values from this array. I need to know the code and name so my application knows which one to go for but I can't get the values out of there. Can someone please help me out? It's the values in the @attributes.
I'm using PHP by the way.
Thanks
              array(2) {
      [0]=>
      object(SimpleXMLElement)#22 (2) {
        ["@attributes"]=>
        array(2) {
          ["code"]=>
          string(3) "HCD"
          ["name"]=>
          string(31) "HIGH COST DELIVERY REGION SRCHG"
        }
        [0]=>
        string(5) "71.25"
      }
      [1]=>
      object(SimpleXMLElement)#24 (2) {
        ["@attributes"]=>
        array(2) {
          ["code"]=>
          string(3) "HCD"
          ["name"]=>
          string(31) "HIGH COST DELIVERY REGION SRCHG"
        }
        [0]=>
        string(5) "71.25"
      }
    }
 
    