foreach ($articles as $article) { $query = 'div/span[1]/a[1]'; $el = $xpath->evaluate($query, $article); if( $el->length ) { echo ...
確定! 回上一頁