how to get specific parts in a page using preg_match_all
<p>Hello i use preg_match_all fuction to grab things on a page but when i tried to grab some specific parts like details part it sends me an array ! </p>

<p>code structer on that page is</p>

<pre><code>&lt;div class="f slp"&gt;DETAILS I WANT TO GET&lt;/div&gt;
</code></pre>

<p>previously for grab urls n titles i used a code like </p>

<pre><code>//so this gets URLs in href=""
preg_match_all('/a href="([^"]+)" class=l.+?&gt;.+?&lt;\/a&gt;/',$scraped,$results);
</code></pre>

<p>but this time i want to grab some details on that page underthe structure of </p>

<pre><code>&lt;div class="f slp"&gt;DETAILS I WANT TO GET&lt;/div&gt;
</code></pre>
