2011-02-07 9 views

答えて

5

を参照してください。

$html->find('p[class=finfot3]')->next_sibling()->innertext()は、第2の<p>要素の内容を返します。

+0

next_sibling()がトリックを行いました。ありがとう。 – Marwelln

0
preg_match('~<p>(.*)</p>~', $html, $matches); 
var_dump($matches); 
関連する問題