One simple way to do it would be: List($username,$domain) = explode("@",$emailaddress);
$newemailaddress = "[EMAIL PROTECTED]"; Maybe I just use list/explode too much. :) -TG > -----Original Message----- > From: Jason Wong [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 6:09 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] adding *** on email address upon view > > > On Thursday 22 July 2004 16:09, Louie Miranda wrote: > > > What command in php? can i convert certain text ex the > > [EMAIL PROTECTED] to [EMAIL PROTECTED] > > If this is to protect people's email addresses then make it > easy on yourself > and just discard the whole domain. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications > Development * > ------------------------------------------ > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > ------------------------------------------ > /* > Never say no > -- Murphy's Laws on Sex n45 > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php