generate functionWed, 21 Dec 2022

remov edomain from url dyamically

$host = parse_url($url, PHP_URL_HOST); $host = preg_replace('/^www\./', '', $host); $host = preg_replace('#^(:?www.)?(:?www.)?(:?www.)?(:?www.)?(.*)#', '$5', $host);

Questions about programming?Chat with your personal AI assistant