php find any string contains various words code example
Example: if text contains word then in php
if (strpos($haystack,$needle) !== false) {
echo "$haystack contains $needle";
}
if (strpos($haystack,$needle) !== false) {
echo "$haystack contains $needle";
}