Answer the question
In order to leave comments, you need to log in
Why does parsing return one element?
I'm parsing a site using simple html dom .
I use it, for some reason only one found element is returned, the first one:
$html = read($link);
foreach($html->find('a.img') as $val)
{
pr($val->attr['href']);
}
function read($url){
......................................
return str_get_html($result);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question