Its syntax is: string strstr (string string, string occurrence)$url = "http://www.rntsoft.com";$domain = strstr($url, ".");print $domain;?>