//string strstr ( string haystack, string needle ) //string stristr ( string haystack, string needle ) $url = "www.rntsoft.com"; $domain = strstr ($url, "."); echo $domain; ?>