Hello all 🙂
Im trying to build a small function to check if a string contains the words listed in an array.
for example
$word_to_check = "wordwillgohere";
$disallowed_words = array('dang','damn');
// obviously these words will be changed, but im sure you get the point
I need a way to check the array, to see if any of the words in the array, are in the string, or if the string is the exact word.
Im going to be using this to block certian names from being able to be created in my member system
Thanks for help.