Sènior Femení B

[insert_php] $url =”https://www.basquetcatala.cat/competicions/resultats/6121″; if ($url != null) { $file = file_get_contents($url); $patternStart = ‘‘; $patternEnd = ‘‘; $output = substr($file, strpos($file, $patternStart, 9000)); //Set start offset trying to avoid possible overload $output = substr_replace($output, ”, strrpos($output, $patternEnd), strlen($output)); //Set start offset trying to avoid possible overload $output = str_replace(‘href=”/equip’, ‘href=”https://www.basquetcatala.cat/equip’, $output); $output = str_replace(‘
‘.$output.’
‘;} else {echo ‘No s\’ha trobat l\’equip’;}[/insert_php]