How to parse the necessary link, if there are many identical classes on the page and the number is always different, I mean [0, etc.], the beginning of the link, class is known. Example:
<?php include 'dom.php'; $html = file_get_html ('$_POST['name']); $link = $html->find('a[class=classname href=http://site.co/]'); ?> It is necessary to search by two parameters:
- the class
- beginning of the link
And to pull out the link, but not the name, at the same time I will insert this link into another variable.