how can i get specific data between div with file_get_content
<p>suppose i echo out </p>

<pre><code>$url = "http://www.mydomain.com";
echo file_get_content($url);
</code></pre>

<p>and <a href="http://www.mydomain.com" rel="nofollow">http://www.mydomain.com</a> has a div i.e</p>

<pre><code>&lt;title&gt;sitename&lt;/title&gt;
&lt;/head&gt;&lt;body&gt;
Lorem Ipsum.......
&lt;div id="divname"&gt;and here is div content&lt;/div&gt;
Copyright bla bla bla
</code></pre>

<p>no i want to only fetch content between div with id="divname" how can i do that</p>
