Hello all,
I am making use of the PHP Simple HTML DOM Parser to get the number 3869 from a HTML page. I tried this and a few other variations.
foreach($html->find('span[class=searchresults_tab_number]') as $element) {
echo $element->innertext . '<br />';
}
But I keep getting nothing returned! All I need is the number from set1, how can I match this?
<div class="local-tabs">
<div class="local-tab active">Set1 <span class="searchresults_tab_number">(3869)</span></div>
<div class="local-tab"><a href="#">Set2 <span class="searchresults_tab_number">(1)</span></a></div>
<div class="local-tab"><a href="#">Set3 <span class="searchresults_tab_number">(3870)</span></a></div>
</div>
Thanks all for any help
Update
I just realised that those elements are created via javascript, does this make a difference?
tabs.insert("<div class='local-tab active'>Set1 <span class='searchresults_tab_number'>(3869)</span></div>");