79755421

Date: 2025-09-04 07:59:03
Score: 1
Natty:
Report link

I always prefer to use flags

$flagFirstLine = true;
foreach($doc->getElementsByTagName('a') as $a){
    if(!$flagFirstLine) {
        foreach($a->getElementsByTagName('img') as $img){
           echo $a->getAttribute('href');
           echo $img->src . '<br>';
        }
    }
    $flagFirstLine = true;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Fernando Ortiz