I have an automated system displaying certain e-mails. To prevent spam bots from picking up the e-mails I would like to make a php script that automatically adds a '[REMOVE THIS]' string right before the '@' sign in an e-mail.
substr_replace() and strpos() don't work because substr_replace requires that the replacing string be the same length as the original piece of string, and strpos() can only replace one letter/symbol at a time. I need to be able to add in a whole new piece of string, '[REMOVE THIS]', while not deleting anything from the original string.
How do I do this?