title: Getting contents of a div with PHP's DOM
body: <p>I've looked through the other Stackoverflow questions on this topic and none of the solutions provided there seem to work for me.</p>
  
  <p>I have an html page (scraped with <code>file_get_contents()</code>) and in that html is a div with an id of "main" - I need to get the contents of that div with PHP's DOMDocument, or something similiar. For this situation I can't use the SimpleHTMLDom parser, which complicates things a bit.</p>