Menu
Ok another strip question :rolleyes:
how do I strip all emails from the string? or actually what the email partent?
here is the code I think should work but I dont know how to write the paterns 🙁
[code=php]
$pattern = array(“”);
$text = “my string [email protected] and some other text”;
$replace = ‘ ‘;
$text = preg_replace($pattern, $replace, $text);
print $text;
Any help? Thanks!