$page = '<h1>title<span class="date">(2008)</span></h1>';
if(preg_match("/<h1[^>]*>(.*?)<\/h1>/", $page, $match)){
var_dump($match);
}
![]()
$page = '<h1>title<span class="date">(2008)</span></h1>';
if(preg_match("/<h1[^>]*>(.*?)<\/h1>/", $page, $match)){
var_dump($match);
}
![]()
Without faith, nothing is possible. With it, nothing is impossible
http://ilwebdifabio.it