I'm using YouTube API. I got following result from API :
SimpleXMLElement Object
(
[@attributes] => Array
(
[rel] => alternate
[href] => http://www.youtube.com/watch?v=blabla
)
)
I'm confuse with this object. I want to access @attributes. How can i do it?
php simplexml get attributes$xml->attributes['href']because attributes is an array