Để lấy toàn bộ URL của thẻ <a href='#'> </a> trong tập tin HTML chứa thẻ <a> bằng Simple Html Dom Parser các bạn làm như sau: PHP: // Create DOM from URL or file$html = file_get_html('http://www.google.com/');// Find all imagesforeach($html->find('img') as $element) echo $element->src . '<br>';// Find all linksforeach($html->find('a') as $element) echo $element->href . '<br>';