I did a little research on php.net and a couple other sites but I'm still VERY VERY unclear on how to strip the domain name from an e-mail address. I figured out how to strip it from a hyperlink, but that's just because you have a set beginning.
Any thoughts?
Here is what I have for the domain...
function stripDomain($link) {
$link= str_replace("www.", "", $link);
$link= str_replace(substr($link,strpos($link,".")),"",$link);
return $link;
}
stripDomain("www.fuziontek.com");
That will return "fuziontek". However, how do I set it to strip everything after @ and before .com?
Thanks!