title: How to display XML RSS feed by PHP
body: <p>I have an assignment to display my XML RSS via PHP on a website, so far I have tried multiple things and all have failed. And I was unable to find the answer since most people do RSS feed by PHP from MySQL database to get a live feed of posts.</p>
  
  <p>XML RSS </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;rss version="2.0"&gt;
  
  &lt;channel&gt;
    &lt;title&gt;Treehouse front page&lt;/title&gt;
    &lt;link&gt;https://teamtreehouse.com/&lt;/link&gt;
    &lt;description&gt;Programming Tutorials&lt;/description&gt;
    &lt;item&gt;
      &lt;title&gt;Code Academy&lt;/title&gt;
    &lt;link&gt;https://teamtreehouse.com/&lt;/link&gt;
    &lt;description&gt;Programming Tutorials&lt;/description&gt;
    &lt;/item&gt;
  &lt;/channel&gt;
  
  &lt;/rss&gt;
  </code></pre>
  
  <p>How can I display this file via PHP?</p>