i was working with html dom parser(got it from http://simplehtmldom.sourceforge.net/) to extract images from websites . so i put every websites i want to extract images from in an array but then if i put it inside a for loop the code is not working . sorry for my bad english
<?php
require("html/simple_html_dom.php");
$aray = array("www.google.com","www.yahoo.com");
for($xx=0;$xx<count($aray);$xx++)
{
$html=file_get_html($aray[$xx];
foreach($html->find('img') as $element)
echo $element->src . '<br>';
}
?>