getEle" /> getEle" /> getEle"/>

How to get all links inside block in DomReadyphp?

26 Views Asked by At

I tried to get all links in block div with class:

$details = $xpath->query('//div[@class="meta"]');

foreach ($details as $node)
{
    $arr = $node->getElementsByTagName("a");
    var_dump($arr); die();

    foreach($arr as $item) {
       // Empty $item
     }
}
0

There are 0 best solutions below