simple xml get attributes
Hej ekspertenhvordan får jeg fat i url'en i objectet nedenfor?
[6]=>
object(SimpleXMLElement)#26 (4) {
["title"]=>
object(SimpleXMLElement)#25 (0) {
}
["description"]=>
object(SimpleXMLElement)#24 (0) {
}
["pubDate"]=>
string(19) "2011-10-17 09:21:19"
["enclosure"]=>
object(SimpleXMLElement)#23 (1) {
["@attributes"]=>
array(2) {
["url"]=>
string(49) "http://img.youtube.com/vi/pJa2nSpgZBo/default.jpg"
["type"]=>
string(10) "image/jpeg"
}
}
}