I have this sentence:
$newalt="My name is Marie";
I want to include a page if marie or josh is found:
$words = array("marie", "josh");
$url_string = explode(" ", $newalt);
if(!in_array($url_string, $words)){
echo "marie or josh are not in array";
}
the problem is, when I run this php it shows "marie or josh are not in array" and marie is the array (or should be). What is wrong?