Test

<?php

$tpb = file_get_contents('https://dtb.liga.nu/cgi-bin/WebObjects/nuLigaTENDE.woa/wa/groupPage?targetFed=DTB&championship=BL+2022&group=1686306');

$tpb_rest = strstr($tpb, '<table cellspacing="0" class="result-set"');
$tpb_rest = str_replace('<table ', '<table width="100%"', $tpb_rest);

$footer_pos = strpos ( $tpb_rest, '</table>');

$tpb_rest = substr($tpb_rest, 0, $footer_pos);

$tpb_rest = $tpb_rest.'</table>';

$tpb_rest = str_replace('/cgi-bin/WebObjects/', 'https://dtb.liga.nu/cgi-bin/WebObjects/', $tpb_rest);

$tpb_rest = str_replace('<td>&nbsp;</td>', '', $tpb_rest);

$tpb_rest = str_replace('<td>  ', '<td id="weg">', $tpb_rest);




echo $tpb_rest;

?>