Merhaba bir konuda yardımcı olabilir misiniz ?
ufak bir bot yazdım .icerik a ile tüm ilanları listeliyorum fakat <?php echo $element->find("a",0)->href; ?> ile adresi link satırına bastığımda "a" değerine veri gelmiyor
<?php foreach ($html->find('.icerik a') as $element):?> kısmını <?php foreach ($html->find('.icerik ') as $element):?> yaptığımda bu seferde tek ilan çekiyor ekrana


Kod:
---------
<?php foreach ($html->find('.icerik a') as $element):?>
<tr>
<th scope="row">
<img width="50px" src="<?php echo $element->find(".firmalarGrupResimAlan img",0)->src; ?>"></th>
<td><?php echo $element->find(".firmalarGrupSagUstUst",0)->innertext; ?></td>
<td><?php echo $element->find(".firmalarGrupSagUstAlt",0)->innertext; ?></td>
<td>
<a href="veri-ekle.php?link=<?php echo $element->find("a",0)->href; ?>" class="btn btn-info btn-md text-white"> ekle </a>
</td>
</tr>
<?php endforeach ?>