php-how to get contents between"<p></p>"
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3650125/how-to-parse-html-with-php">How to parse HTML with PHP?</a>  </p>
</blockquote>



<p>I want to grab the all contents between <code>&lt;p&gt; &lt;/p&gt;</code> in a webpage and turn to be an array.</p>

<pre><code>preg_match_all('/&lt;p&gt;(.*)&lt;\/p&gt;/s', $content, $summary);
</code></pre>

<p>but what I got is all block of contents ,not the each<code>&lt;p&gt;</code>'s.Please help.</p>
