Problem in Array Object SimpleXMLElement Object ( [@attributes]

Discussion in 'PHP' started by Subikar, May 15, 2009.

  1. #1
    How I will get the "id" value of this object
    SimpleXMLElement Object ( [@attributes] => Array ( [id] => E0-001-014381831-4@1900010400 ) )

    Help me quick I am screwed up for this :)

    Thanks,
    Subikar
     
    Subikar, May 15, 2009 IP
  2. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Anyway I got the solution thanks

    foreach($result->attributes() as $key)
    $url = $key;
     
    Subikar, May 15, 2009 IP