{source}
<?
require_once 'zpars/simple_html_dom.php';
$data = file_get_html('https://www.2fnl.com/players/23870/season-2022-2023/');
if($data->innertext!='' and count($data->find('div.team-tabs'))){
foreach($data->find('div.team-tabs') as $table){
// Write a function with parameter "$element"
function my_callback($element) {
// Hide all <b> tags
if ($element->tag=='a')
$element->outertext = '<p>'.$element->innertext. '</p>';
if ($element->tag=='img')
$element->outertext = '';
if ($element->tag=='')
$element->innertext = '';
}
// Register the callback function with it's function name
$data->set_callback('my_callback');
// Callback function will be invoked while dumping
echo $table;
}
}
?>
{/source}