PHP 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:1014:2517:2019:3521: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:1014:2517:2019:3521:50</td>
</
tr>
<
tr>
<
td class="PrintShowTimesDay" valign="top" colspan="1">Daily</td>
<
td class="PrintShowTimesSession" valign="top" colspan="1">12:1014:2517:2019:3521:50</td>
</
tr
How can i get A & B with PrintShowTimesDay,PrintShowTimesSession in order

all i can do is

PHP Code:
$pattern "/<td class=\"PrintShowTimesFilm\" colspan=\"2\">(.*?)<\/td>/";
preg_match_all($pattern$r$matches); 
so i just get the name A and B but their nest information can't get it

thank you