title: How I get values of url of tag image of size attribute?
body: <p>How do I get the values of the url of a tag image of a mega attribute?</p>
  
  <p>Should I get it by attribute?</p>
  
  <p>How do I do this in PHP?</p>
  
  <pre><code>$string = file_get_contents("http://ws.audioscrobbler.com/2.0/?method=artist.getTopAlbums&amp;artist=enya&amp;lang=pt&amp;autocorrect=1&amp;api_key=1d07ae6d0a77914229c0ccaa75867fdf"); 
  
  $xml = new SimpleXMLElement($string);
  
  $cover = $xml-&gt;topalbums-&gt;album-&gt;image["size"]['extralarge'];
  
  var_dump($cover);
  </code></pre>
  
  <p>Thanks</p>