i want to get a link by specific text in title, using simple html dom parser PHP
html code
<h3 class="title"><a href="0.html" class="title"> keyword1 </a></h3>
how to get link if title is "keyword1" ?
my code
$html = file_get_html($url);
foreach($html->find('h3[class=title]') as $e){
if(isset($e)){
foreach($e->find('keywords1') as $ee)
foreach($html->find('a') as $eee){
$d = $eee;
print_r ($d)."<br>";
}