title: Get URL of RSS Feed "Enclosure URL" tag in PHP
body: <p>The description works, but The URL does not work , nothing is displayed. I want to display the link, something like:</p>
  
  <pre><code>&lt;enclosure url="http://example.com/file.mp3" length="123456789" type="audio/mpeg"&gt;
  </code></pre>
  
  <p>The code I have is:</p>
  
  <pre><code>&lt;?php
      $rss = new DOMDocument();
      $rss-&gt;load('feedlink example');
      $feed = array();
      foreach ($rss-&gt;getElementsByTagName('item') as $node) {
          $item = array ( 
              'desc' =&gt; $node-&gt;getElementsByTagName('description')-&gt;item(0)-&gt;nodeValue,
              'url' =&gt;  $node-&gt;getElementsByTagName('enclosure url')-&gt;item(0)-&gt;nodeValue,
              );
          array_push($feed, $item);
      }
      $limit = 1;
      for($x=0;$x&lt;$limit;$x++) {
          $description = $feed[$x]['desc'];
          $url = $feed[$x]['enclosure url'];
          echo '&lt;div class="descricao"&gt;'.$description.'&lt;/div&gt;'; //it works
          echo $url;  //it does not work , nothing is displayed
      }
  ?&gt;
  </code></pre>