I've following code:
$url = "HERE URL";
$handle = curl_init($url);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE);
$result = curl_exec($handle);
print_r($result);
if (preg_match('<tr><td>Listeners (current):</td><td class="streamstats">(.*)
</td></tr>', $result, $matches)) {
print_r($matches);
}
curl_close($handle);
I want to get the data from td class "streamstats", but its a whole table, with more class streamstats. What im doing wrong?
Thanks in advance.