brown2005 Posted April 17, 2007 Share Posted April 17, 2007 hi, i want to take an email [email protected] and everything after the @ sign i want to turn into *, any help please? Quote Link to comment https://forums.phpfreaks.com/topic/47382-email-function/ Share on other sites More sharing options...
PC Nerd Posted April 17, 2007 Share Posted April 17, 2007 um, roughly, if all your trying to do is mask the domain of the address: $explode($email, "@"); $new_email = $explode[0]."*.com"; of whatever you could make a loop for the length of teh domain name, and then actually get the real length masked, but this is simpler i cant remember if its explode or impode() or explode(), but i think impode joines the array back to gether again. gdluck Quote Link to comment https://forums.phpfreaks.com/topic/47382-email-function/#findComment-231186 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.