if text contains word then in php
snippet in php

php string contains

user3812

$mystring = 'abc';
$findme   = 'a';
$pos = strpos($mystring, $findme);

if text contains word then in php

user7425

if (strpos($haystack,$needle) !== false) {
    echo "$haystack contains $needle";
}