Hi guys,
Im trying to replace a words that are entered into a settings field (seperated by a ,)
So in my admin panel I enter words in the "hide_words" setting field like so: hello,goodbye,tommy,today
Heres my example:
Doesnt seem to be replacing the words.PHP Code:$words = explode(",",settings['hide_words']);
$replace = "<b>[Disallowed]</b>";
$message = preg_replace("#$words#", "$replace", $message);




Reply With Quote