This is probably v.easy but my php is very rusty. I need to implement a bad word filter...I currently have this:
if(!in_array($_POST['Name'],$profanities)) { echo $row['Name']; }
...and an profanities array with bad words in it. Problem is I want to be able to check if any portion of the name the user has entered contains one of those bad words....what I've currently got only checks if the name is the exact bad word....how do i do this?
thanks