domena function
Kategorie: linux

function domena($string)
{


$string=trim($string);
$string = str_replace('http://','', $string);
$string = str_replace('http://','', $string);
$string = str_replace('www.','', $string);

$t=explode(".", $string);

if ( ( $t[1] == "cz" ) or ( $t[1] == "com" ) or ( $t[1] == "eu" ) or ( $t[1] == "info" )) $domena=$t[0].".".$t[1];
else $domena=$t[0].".".$t[1].".".$t[2];

return $domena;
}


22.1.2020 11:12:48