How can I get a specific element on a page and show another?
I have this page http://www.supercounters.com/stats/1214936, i want to get this value:
<td 'class="span-5 visitortd">5,582 Visits</td>
Out: 5,582 Yesterday Visits
$html = file_get_html('http://www.supercounters.com/stats/1214936');
foreach($html->find('table') as $element)
echo $element->td . '<br>';
The data you want is in
$html->find('td'). Tag names don't become properties, you have to use
$element->find() to access different elements.
Then to access the contents, you need to use