View Single Post
Old 12-23-2003, 06:25 AM   #9 (permalink)
bdonalds
Registered User
 
Join Date: Dec 2003
Posts: 5
bdonalds is on a distinguished road
Ahhh! I had a total brain fart....I finally figured out what you meant!

Os if you want to leave the username part alone, just split it at the "@" and do the replace on the rest...

<?
$fullEmail="foo.bar@foobar.com";
$tempArray=split("@",$fullEmail);
$maskedEmail=$tempArray[0] . " AT " . str_replace("."," DOT ",$tempArray[1]);
?>

Bryan
bdonalds is offline   Reply With Quote