How can i get A & B with PrintShowTimesDay,PrintShowTimesSession in orderPHP Code:<tr>
<td class="PrintShowTimesFilm" colspan="2">A</td>
</tr>
<tr>
<td class="PrintShowTimesDay" valign="top" colspan="1">Daily</td>
<td class="PrintShowTimesSession" valign="top" colspan="1">12:10, 14:25, 17:20, 19:35, 21:50</td>
</tr>
<td class="PrintShowTimesFilm" colspan="2">B</td>
</tr>
<tr>
<td class="PrintShowTimesDay" valign="top" colspan="1">Daily</td>
<td class="PrintShowTimesSession" valign="top" colspan="1">12:10, 14:25, 17:20, 19:35, 21:50</td>
</tr>
<tr>
<td class="PrintShowTimesDay" valign="top" colspan="1">Daily</td>
<td class="PrintShowTimesSession" valign="top" colspan="1">12:10, 14:25, 17:20, 19:35, 21:50</td>
</tr>
all i can do is
so i just get the name A and B but their nest information can't get itPHP Code:$pattern = "/<td class=\"PrintShowTimesFilm\" colspan=\"2\">(.*?)<\/td>/";
preg_match_all($pattern, $r, $matches);
thank you



Reply With Quote
Bookmarks