preg_match_all henter ikke
Nogen der kan forklare hvorfor den ikke kan hente det her ?det er min kode.
preg_match_all("/(<th colspan=\"2\">Ranking<\/th><\/tr><tr><td>Current Singles Ranking<\/td><td>)(.*?)(<\/td><\/tr><tr><td>Career High Singles Ranking<\/td>)/", $html, $matchesss, PREG_SET_ORDER);
foreach ($matchesss as $wsrank) {
}
echo $wsrank[0]."\n\n";
echo $wsrank[1]."\n\n";
echo $wsrank[2]."\n\n";
echo $wsrank[3]."\n\n";
echo $wsrank[4]."\n\n";
echo $wsrank[5]."\n\n";
det er det den skal hente eller derfra
<tr>
<th colspan="2">Ranking</th>
</tr>
<tr>
<td>Current Singles Ranking</td>
<td>
242
</td>
</tr>
<tr>
<td>Career High Singles Ranking</td>
<td>