Help With Php Email Code 24.03.08
Need help with a PHP code.
I need to replace a email address in a line of text.
So I need a PHP function that will take a text like
$text= ” This is a test of email <a href=”test[atttt]hotmail”>test[atttt]hotmail.com</a>”;
and replace the email portion to any text that I want so the output would be something like
This is a test of email THIS IS MY CUSTOM TEXT
So the Function needs to replace all the text between <a href=”mailto:…”> to </a> with custom text
I need to use this function so I can replace email addresses in a forum and replace it with text like EMAIL NOT AVAILABLE
Also no Object Oriented code. I just need a PHP function.
I have attached a text document just in case the information above doesn’t display correctly.
Thanks,



