RT,如何写一段关于 <p></p> <p></p> 的正则。
$str="<p>4444</p> <p>555</p>";
$regex='/<p>(.*?)</p>/i';
preg_match_all($regex, $str, $content);
echo '<pre>';
var_dump($content[1]);
问题能详细一点么
RT,如何写一段关于 <p></p> <p></p> 的正则。
$str="<p>4444</p> <p>555</p>";
$regex='/<p>(.*?)</p>/i';
preg_match_all($regex, $str, $content);
echo '<pre>';
var_dump($content[1]);
问题能详细一点么