I have an array and a variable, I want to check if any of the array items occur in the variable. I presume I somehow use strstr()?
Example:
$bad = array('google.com', 'facebook.com', 'myspace.com');
$ref = $_SERVER['HTTP_REFERER'];
if(ANY OF $bad IS IN $ref) {
...
}