How can we get specific links using simple html dom
问题 I have used this script which i found in the official simple html dom site to find hyperlinks in a website foreach($html->find('a') as $element) echo $element->href . '<br>'; it returned all the links found in the website but i want only specific links in that website. is there a way of doing it in simple html dom. This is the html code for that specific links <a class="z" href="http://www.bbc.co.uk/news/world-middle-east-16893609" target="_blank" rel="follow">middle east</a> where this is