i know to do
DOM
array_diff()
i did this to store the images src attribute in an array
$doc = new DOMDocument();
$doc->loadHTMLFile('www.page_a/source.html');
$xpath = new DOMXPath($doc);
$imgList = $xpath->query('//img');
$srcList = array();
foreach ($imgList as $img) {
$srcList[] = $img->getAttribute('src');
}
how can i store the href attribute in a array
for example,consider
<a href="www.abc.com/a.htm">
i need to store www.abc.com/a.htm in an array