How can I do something like this.
$names = array("Mary", "Wendy", "Sam", "Jane");
if (in_array("Thiis is my long string to check and see if Jane has a name", $names)) {
echo "Got It";
}
I want to search for Key words in a long string and if it is present it will preform another peice of code (where got it is).