php string contains a substring code example
Example: php find if substring is in string
$result = strpos("haystack", "needle");
if ($result != false)
{
// text found
}
$result = strpos("haystack", "needle");
if ($result != false)
{
// text found
}