Checking if any of the strings in an array matches a string
<p>I'm trying to find out if a string matches any of my bad words in my array IE:</p>

<pre><code>$badWords = Array('bad', 'words', 'go', 'here');
$strToCheck = "checking this string if any of the bad words appear";

if (strpos($strToCheck, $badWords)) { 
    // bad word found
}
</code></pre>

<p>the issue is strpos can only check for a string and not an array, is there a method of doing this without looping through the array of badwords?</p>
