title: read contents of an external webpage and get specific elements
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3577641/how-to-parse-and-process-html-with-php">How to parse and process HTML with PHP?</a>  </p>
  </blockquote>
  
  
  
  <p>I've tried to figure this out for awhile now. I'm trying to not only get the contents of a webpage using <code>file_get_contents($url)</code> but also be able to draw out specific data. </p>
  
  <p>A webpage I was interested in grabbing the contents of, is <a href="http://www.craigslist.org/about/sites" rel="nofollow noreferrer">Craiglist</a>.  This is just one example.  I'd like to form an array of states with areas and accompanying websites, but I cant seem to find the way to get the specific elements of the page.  Any help would be really appreciated!</p>