- var_dump: documentation ( source)
- preg_match_all: documentation ( source)
<?php
preg_match_all('|<tr><th>Gemeindetyp</th><td>(.*)</td></tr>|Uism','<tr><th>Gemeindetyp</th><td>Kreisangehörige Gemeinde</td></tr>', $items, PREG_PATTERN_ORDER);
var_dump($items, 1);