title: file_get_contents by div id
body: <p>I am trying to get the content of a specific div (id="total_raised") from an external webpage (<a href="https://uconn.givecorps.com/projects/3120-uconn-marching-band-tower-project" rel="nofollow">https://uconn.givecorps.com/projects/3120-uconn-marching-band-tower-project</a>). Here is my code:</p>
  
  <pre><code>$url = 'https://uconn.givecorps.com/projects/3120-uconn-marching-band-tower-project';
  $content = file_get_contents($url);
  $first_step = explode( '&lt;div id="total_raised"&gt;' , $content );
  $second_step = explode("&lt;/div&gt;" , $first_step[1] );
  
  echo $second_step[0];
  </code></pre>
  
  <p>When I echo $content, everything displays fine. But when I try to echo just the dollar amount raised, nothing shows up.</p>