I am using PHP Simple HTML DOM to try to count how many tags there are in an html document. The html document is structured as follows:
<div class="detailMS__incidentRow incidentRow--home even">
<div class="time-box">48'</div>
<div class="icon-box soccer-ball">
<span class="icon soccer-ball"> </span>
</div>
<span class="participant-name">
<a href="#" onclick="window.open('/jugador/thiago-heleno/GfhW4pOT/'); return false;">Heleno T.</a>
</span>
<span class="assist note-name">
(<a href="#" onclick="window.open('/jugador/veiga-raphael/0fYAKGcN/'); return false;">Veiga R.</a>)
</span>
</div>
I am trying it in the following way:
$es = $html->find('div[class=detailMS__incidentRow incidentRow--home even], div[class=icon-box soccer-ball] div[class=icon-box soccer-ball], span[class=icon soccer-ball]');
But the result is a very large array ... And the browser is blocked.
How could I get it?